From e2e0eddda79e982e19d66da0f5d80def35b1dd08 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Thu, 15 Aug 2019 09:21:46 -0500 Subject: [PATCH] fix err 500 when someone attempts to follow someone they're already following --- app/controllers/remote_follow_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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