about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-16 23:43:03 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:18 -0500
commit6ee1ea45d80ac1b956d818e0f5e549f21e26f531 (patch)
tree532a8ac596c8880ca95c91088bc7aff41b5b4d7a
parentae886ea3e14788ef7966b02502451527080ea5ee (diff)
[Bug] Use correct test for presence of remote account
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 908bd1bdb..cfc93b7ce 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -259,7 +259,7 @@ class ApplicationController < ActionController::Base
   end
 
   def authenticated_or_following?(account)
-    current_user.functional? || following?(account)
+    current_account? || following?(account)
   end
 
   def current_account?