config: fix references to Danbooru.config.app_name.

Danbooru.config.app_name is either Safebooru or Danbooru. Fix some
places where it should always be Danbooru.
This commit is contained in:
evazion
2019-12-06 00:53:39 -06:00
parent 06078ef172
commit 0c483cad15
5 changed files with 9 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ class CloudflareService
Danbooru.config.httparty_options.deep_merge(headers: {
"Authorization" => "Bearer #{api_token}",
"Content-Type" => "application/json",
"User-Agent" => "#{Danbooru.config.app_name}/#{Rails.application.config.x.git_hash}"
"User-Agent" => "#{Danbooru.config.canonical_app_name}/#{Rails.application.config.x.git_hash}"
})
end