temp disable search counts.

This commit is contained in:
evazion
2019-12-24 17:13:17 -06:00
parent 283bed64da
commit 89adf88d50

View File

@@ -1,5 +1,6 @@
module PostsHelper module PostsHelper
def post_search_counts_enabled? def post_search_counts_enabled?
return false
Danbooru.config.enable_post_search_counts && Danbooru.config.reportbooru_server.present? && Danbooru.config.reportbooru_key.present? Danbooru.config.enable_post_search_counts && Danbooru.config.reportbooru_server.present? && Danbooru.config.reportbooru_key.present?
end end
@@ -51,7 +52,6 @@ module PostsHelper
end end
def post_view_count_js def post_view_count_js
return nil
return nil unless post_search_counts_enabled? return nil unless post_search_counts_enabled?
msg = "#{params[:id]},#{session.id}" msg = "#{params[:id]},#{session.id}"