about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-07-21 18:08:02 +0200
committermultiple creatures <dev@multiple-creature.party>2020-02-21 00:15:49 -0600
commit755d96d5b5f9c7e47e2f34d299d8965f6e8d4daa (patch)
tree320287b6773667c063b597b5b31c5876626671f8 /config
parentc600f16baf66fac26ba40c0d3d4df46a822ede89 (diff)
port tootsuite#8657: Change locale detection to run once per session
Fix #6462
Diffstat (limited to 'config')
-rw-r--r--config/application.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb
index 7aafe38b5..59bcc5664 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -116,6 +116,9 @@ module Mastodon
       Doorkeeper::AuthorizationsController.layout 'modal'
       Doorkeeper::AuthorizedApplicationsController.layout 'admin'
       Doorkeeper::Application.send :include, ApplicationExtension
+      Devise::FailureApp.send :include, AbstractController::Callbacks
+      Devise::FailureApp.send :include, HttpAcceptLanguage::EasyAccess
+      Devise::FailureApp.send :include, Localized
     end
   end
 end