about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/remote_follow_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/remote_follow_controller.rb b/app/controllers/remote_follow_controller.rb
index dc15e63bf..2caa9c24e 100644
--- a/app/controllers/remote_follow_controller.rb
+++ b/app/controllers/remote_follow_controller.rb
@@ -11,7 +11,7 @@ class RemoteFollowController < ApplicationController
   def new
     raise Mastodon::NotPermittedError unless user_signed_in?
 
-    FollowService.new.call(current_account, @account)
+    FollowService.new.call(current_account, @account) unless current_account.following?(@account)
     redirect_to TagManager.instance.url_for(@account)
   end