mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 17:52:39 +02:00
14 lines
358 B
Ruby
14 lines
358 B
Ruby
get '/activity' do
|
|
#expires 7200, :public, :must_revalidate if self.class.production? # 2 hours
|
|
params[:activity] = 'global' # FIXME this is a bad hack
|
|
|
|
global_dataset = Event.global_dataset
|
|
|
|
if params[:event_id]
|
|
global_dataset.where! Sequel.qualify(:events, :id) => params[:event_id]
|
|
end
|
|
|
|
@events = global_dataset.all
|
|
|
|
erb :'activity'
|
|
end
|