From fc4b2e54a4421e42b2d8e8e4988dd34af39c8c60 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Thu, 29 Sep 2016 17:45:16 -0700 Subject: [PATCH] fix common searches --- app/helpers/posts_helper.rb | 1 - app/views/posts/partials/index/_search_count.html.erb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/helpers/posts_helper.rb b/app/helpers/posts_helper.rb index 5e5d4ada8..cada08b1c 100644 --- a/app/helpers/posts_helper.rb +++ b/app/helpers/posts_helper.rb @@ -32,7 +32,6 @@ module PostsHelper return nil unless Danbooru.config.enable_post_search_counts return nil unless user.is_platinum? return nil unless user.enable_recent_searches? - return unless params[:ms] == "1" key = "uid" value = user.id diff --git a/app/views/posts/partials/index/_search_count.html.erb b/app/views/posts/partials/index/_search_count.html.erb index 0acd8a60c..0096909e2 100644 --- a/app/views/posts/partials/index/_search_count.html.erb +++ b/app/views/posts/partials/index/_search_count.html.erb @@ -3,7 +3,7 @@ $.post("<%= Danbooru.config.report_server %>/hits", { key: "<%= key %>", value: "<%= value %>", - <% if CurrentUser.user.is_platinum? %> + <% if CurrentUser.user.is_platinum? && params[:ms] %> uid: <%= CurrentUser.user.id %>, <% end %> sig: "<%= sig %>"