about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-21 21:54:13 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-21 21:59:38 -0500
commit072a3c5b7b81b3a85bccefc6c78ea4561780bec9 (patch)
tree6c952a085ddd950c4e0672a780b6e9f2b9e7925e
parent79318e87353719cf7b41bf9b1b8e51f6cc3a6797 (diff)
Check disable RSS setting against author's account, not logged-in user!
-rw-r--r--app/controllers/accounts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb
index b7215cb36..ead63d2ee 100644
--- a/app/controllers/accounts_controller.rb
+++ b/app/controllers/accounts_controller.rb
@@ -199,6 +199,6 @@ class AccountsController < ApplicationController
   end
 
   def rss_disabled?
-    current_user.setting_rss_disabled
+    @account.user&.setting_rss_disabled
   end
 end