From c09a9b4235656b6c8c35b896c5ba7f27e4be7cd9 Mon Sep 17 00:00:00 2001 From: noellabo Date: Thu, 9 Jul 2020 06:40:05 +0900 Subject: [PATCH] Fix to accept followed relayed_through_account --- app/lib/activitypub/activity.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb index 58cec7ac49..0ce279d287 100644 --- a/app/lib/activitypub/activity.rb +++ b/app/lib/activitypub/activity.rb @@ -185,7 +185,7 @@ class ActivityPub::Activity end def followed_by_local_accounts? - @account.passive_relationships.exists? + @account.passive_relationships.exists? || @options[:relayed_through_account]&.passive_relationships&.exists? end def requested_through_relay?