]> cat aescling's git repositories - mastodon.git/commitdiff
correct opt-out showing application (#10086)
authorHinaloe <hina@hinaloe.net>
Wed, 20 Feb 2019 16:47:38 +0000 (01:47 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 20 Feb 2019 16:47:38 +0000 (17:47 +0100)
* correct opt-out showing application

refs #9994

* Revert "correct opt-out showing application"

This reverts commit 0e9bb70f145be42962416a6b87c08d59a2896486.

* User#shows_application? calls wrong value

app/models/user.rb

index 7432e3da883482e63177f788d7f84244e2a8bcb5..83816def57dd9778a9c2d791ab74c13a88fc0813 100644 (file)
@@ -245,7 +245,7 @@ class User < ApplicationRecord
   end
 
   def shows_application?
-    @shows_application ||= settings.shows_application
+    @shows_application ||= settings.show_application
   end
 
   def token_for_app(a)