diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-08-15 09:21:46 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-08-15 09:27:43 -0500 |
commit | e2e0eddda79e982e19d66da0f5d80def35b1dd08 (patch) | |
tree | 9f0d30f0b486d2393a975a4671547c427892fe0d | |
parent | b6b5bae72ca45ee6d4e3ac048c1dcb26480fa094 (diff) |
fix err 500 when someone attempts to follow someone they're already following
-rw-r--r-- | app/controllers/remote_follow_controller.rb | 2 |
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 |