mirror of
https://github.com/neocities/neocities.git
synced 2025-05-28 09:50:33 +02:00
link for only my updates
This commit is contained in:
parent
fa35da3c12
commit
ab95fa01af
2 changed files with 13 additions and 3 deletions
12
app.rb
12
app.rb
|
@ -127,7 +127,17 @@ end
|
|||
get '/?' do
|
||||
if current_site
|
||||
require_login
|
||||
@suggestions = current_site.suggestions
|
||||
|
||||
if current_site.followings_dataset.count == 0
|
||||
@suggestions = current_site.suggestions
|
||||
end
|
||||
|
||||
if params[:activity] == 'mine'
|
||||
@events = current_site.latest_events
|
||||
else
|
||||
@events = current_site.news_feed
|
||||
end
|
||||
|
||||
halt erb :'home', locals: {site: current_site}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue