From 072a3c5b7b81b3a85bccefc6c78ea4561780bec9 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 21 Sep 2020 21:54:13 -0500 Subject: Check disable RSS setting against author's account, not logged-in user! --- app/controllers/accounts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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 -- cgit