mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
accessing site instance incorrectly
This commit is contained in:
parent
c8b748069c
commit
225bf84946
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ end
|
|||
|
||||
get '/site/:username/archives' do
|
||||
@site = Site[username: params[:username]]
|
||||
not_found if @site.nil? || site.is_banned || site.is_deleted || !@site.ipfs_archiving_enabled
|
||||
not_found if @site.nil? || @site.is_banned || @site.is_deleted || !@site.ipfs_archiving_enabled
|
||||
@title = "Site archives for #{@site.title}"
|
||||
@archives = @site.archives_dataset.limit(300).order(:updated_at.desc).all
|
||||
erb :'site/archives'
|
||||
|
|
Loading…
Add table
Reference in a new issue