summaryrefslogtreecommitdiffstats
path: root/app/lib/activitypub/activity.rb
diff options
context:
space:
mode:
authorTakeshi Umeda <noel.yoshiba@gmail.com>2020-07-15 02:05:34 +0900
committerGitHub <noreply@github.com>2020-07-14 19:05:34 +0200
commit5c23ec2fa668c9a0b25681349f7e73e1dfb68ecd (patch)
tree7391582b72682d0beab4cb08dccfdfc92e09e790 /app/lib/activitypub/activity.rb
parent6a96af4d20129cea06c716393338aa4f730b7b35 (diff)
Improve group processing (#14279)
* Fix the local group's followers collection * Fix to accept followed relayed_through_account * Add local delivery to the group's followers * Fix code style * Revert "Add local delivery to the group's followers" This reverts commit 3237effc199772e4c4d30f19082cbc5633f56196.
Diffstat (limited to 'app/lib/activitypub/activity.rb')
-rw-r--r--app/lib/activitypub/activity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb
index 58cec7ac49f..0ce279d2873 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?