rename some config keys to clarify what they are

This commit is contained in:
Albert Yi
2016-11-28 17:28:47 -08:00
parent 428d4689d6
commit e7907e0e14
8 changed files with 30 additions and 30 deletions

View File

@@ -5,7 +5,7 @@ module PostsHelper
if params[:ms] == "1" && @post_set.post_count == 0 && @post_set.is_single_tag?
session_id = session.id
digest = OpenSSL::Digest.new("sha256")
sig = OpenSSL::HMAC.hexdigest(digest, Danbooru.config.shared_remote_key, ",#{session_id}")
sig = OpenSSL::HMAC.hexdigest(digest, Danbooru.config.reportbooru_key, ",#{session_id}")
return render("posts/partials/index/missed_search_count", session_id: session_id, sig: sig)
end
end
@@ -20,7 +20,7 @@ module PostsHelper
key = "ps-#{tags}"
value = session.id
digest = OpenSSL::Digest.new("sha256")
sig = OpenSSL::HMAC.hexdigest(digest, Danbooru.config.shared_remote_key, "#{key},#{value}")
sig = OpenSSL::HMAC.hexdigest(digest, Danbooru.config.reportbooru_key, "#{key},#{value}")
return render("posts/partials/index/search_count", key: key, value: value, sig: sig)
end
end
@@ -36,7 +36,7 @@ module PostsHelper
key = "uid"
value = user.id
digest = OpenSSL::Digest.new("sha256")
sig = OpenSSL::HMAC.hexdigest(digest, Danbooru.config.shared_remote_key, "#{key},#{value}")
sig = OpenSSL::HMAC.hexdigest(digest, Danbooru.config.reportbooru_key, "#{key},#{value}")
render("users/common_searches", user: user, sig: sig)
end