mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
404 for deleted event
This commit is contained in:
parent
e1113287b4
commit
05c682b0e5
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ get '/site/:username/?' do |username|
|
|||
|
||||
if params[:event_id]
|
||||
not_found if params[:event_id].not_an_integer?
|
||||
event = Event.select(:id).where(id: params[:event_id]).first
|
||||
event = Event.select(:id).where(id: params[:event_id]).exclude(is_deleted: true).first
|
||||
not_found if event.nil?
|
||||
events_dataset = Event.where(id: params[:event_id]).paginate(1, 1)
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue