mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
404 if missing site for RSS feed
This commit is contained in:
parent
9c6ed2d7c5
commit
7557c5b827
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
get '/site/:username.rss' do |username|
|
||||
site = Site[username: username]
|
||||
halt 404 if site.nil?
|
||||
content_type :xml
|
||||
site.to_rss.to_xml
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue