diff --git a/app/presenters/intro_presenter.rb b/app/presenters/intro_presenter.rb index 83e73c0d1..2f503f122 100644 --- a/app/presenters/intro_presenter.rb +++ b/app/presenters/intro_presenter.rb @@ -1,6 +1,6 @@ class IntroPresenter def each - PopularSearchService.new(Date.today, "week").each_search(20) do |query, count| + PopularSearchService.new(Date.today, "month").each_search(20) do |query, count| yield(query, PostSets::Intro.new(query)) end end diff --git a/app/views/explore/posts/searches.html.erb b/app/views/explore/posts/searches.html.erb index 9f78342ad..6fd110e79 100644 --- a/app/views/explore/posts/searches.html.erb +++ b/app/views/explore/posts/searches.html.erb @@ -22,17 +22,14 @@

View by <%= link_to "day", searches_explore_posts_path(:date => params[:date], :scale => "day") %> | - <%= link_to "week", searches_explore_posts_path(:date => params[:date], :scale => "week") %> | <%= link_to "month", searches_explore_posts_path(:date => params[:date], :scale => "month") %>. Back one <%= link_to "day", searches_explore_posts_path(:date => 1.day.ago(@date), :scale => params[:scale]) %> | - <%= link_to "week", searches_explore_posts_path(:date => 1.week.ago(@date), :scale => params[:scale]) %> | <%= link_to "month", searches_explore_posts_path(:date => 1.month.ago(@date), :scale => params[:scale]) %>. Forward one <%= link_to "day", searches_explore_posts_path(:date => 1.day.since(@date), :scale => params[:scale]) %> | - <%= link_to "week", searches_explore_posts_path(:date => 1.week.since(@date), :scale => params[:scale]) %> | <%= link_to "month", searches_explore_posts_path(:date => 1.month.since(@date), :scale => params[:scale]) %>.

diff --git a/app/views/posts/partials/index/_search_count.html.erb b/app/views/posts/partials/index/_search_count.html.erb index e11f65429..764be7932 100644 --- a/app/views/posts/partials/index/_search_count.html.erb +++ b/app/views/posts/partials/index/_search_count.html.erb @@ -3,6 +3,7 @@ $.post("<%= Danbooru.config.report_server %>/hits", { key: "<%= key %>", value: "<%= value %>", + uid: <%= CurrentUser.user.id.to_s %>, sig: "<%= sig %>" }); });