fix err 500 when someone attempts to follow someone they're already following

staging
multiple creatures 2019-08-15 09:21:46 -05:00
parent b6b5bae72c
commit e2e0eddda7
1 changed files with 1 additions and 1 deletions

View File

@ -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