mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 01:24:56 +02:00
use nokogiri for rss, return better results, index for speed
This commit is contained in:
parent
7788437c33
commit
fd15fd6856
5 changed files with 32 additions and 22 deletions
|
@ -2,7 +2,7 @@ get '/site/:username.rss' do |username|
|
|||
site = Site[username: username]
|
||||
halt 404 if site.nil?
|
||||
content_type :xml
|
||||
site.to_rss.to_xml
|
||||
site.to_rss
|
||||
end
|
||||
|
||||
get '/site/:username/?' do |username|
|
||||
|
@ -374,4 +374,4 @@ post '/site/:username/confirm_phone' do
|
|||
|
||||
# Will redirect to / automagically if phone was verified
|
||||
redirect "/site/#{current_site.username}/confirm_phone"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue