fix err 500 when someone attempts to follow someone they're already following
parent
b6b5bae72c
commit
e2e0eddda7
|
@ -11,7 +11,7 @@ class RemoteFollowController < ApplicationController
|
||||||
def new
|
def new
|
||||||
raise Mastodon::NotPermittedError unless user_signed_in?
|
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)
|
redirect_to TagManager.instance.url_for(@account)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue