mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fixes for non-unique results and missing current site
This commit is contained in:
parent
1f1ee0b64e
commit
ccb6c85c41
3 changed files with 4 additions and 4 deletions
|
@ -32,7 +32,7 @@ get '/activity' do
|
|||
query2 = query2.where(Sequel.|({events__site_id: nil}, ~{events__site_id: blocking_site_ids})).where(Sequel.|({events__actioning_site_id: nil}, ~{events__actioning_site_id: blocking_site_ids}))
|
||||
end
|
||||
|
||||
ds = query1.union(query2, all: true).order(Sequel.desc(:created_at))
|
||||
ds = query1.union(query2, all: false).order(Sequel.desc(:created_at))
|
||||
else
|
||||
ds = Event.news_feed_default_dataset.exclude(sites__is_nsfw: true)
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
</div>
|
||||
<% end %>
|
||||
|
||||
<%== erb :'_news', locals: {current_site: nil, events: @events} %>
|
||||
<%== erb :'_browse_tags' %>
|
||||
<%== erb :'_news', layout: false, locals: {current_site: current_site, events: @events} %>
|
||||
<%== erb :'_browse_tags', layout: false %>
|
||||
</div>
|
||||
</div>
|
|
@ -143,7 +143,7 @@
|
|||
<% end %>
|
||||
|
||||
<% unless is_education? %>
|
||||
<%== erb :_browse_tags %>
|
||||
<%== erb :_browse_tags, layout: false %>
|
||||
<div class="row content misc">
|
||||
<h3>Text Search</h3>
|
||||
<form id="searchForm" method="GET" action="https://duckduckgo.com" class="content" onsubmit="return addSiteToSearch()">
|
||||
|
|
Loading…
Add table
Reference in a new issue