From 315c1709107552b0772bced42d212cda607ce367 Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Wed, 11 Dec 2024 16:08:07 +0100 Subject: [PATCH] Fix bug where remote suspension causes local instance to remove remote follows (#27588) --- app/services/suspend_account_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/suspend_account_service.rb b/app/services/suspend_account_service.rb index 8d5446f1a8..44210799f9 100644 --- a/app/services/suspend_account_service.rb +++ b/app/services/suspend_account_service.rb @@ -20,7 +20,7 @@ class SuspendAccountService < BaseService private def reject_remote_follows! - return if @account.local? || !@account.activitypub? + return if @account.local? || !@account.activitypub? || @account.suspension_origin_remote? # When suspending a remote account, the account obviously doesn't # actually become suspended on its origin server, i.e. unlike a