From b3895a48c974e623ab92b901ed2855ae187701d5 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Thu, 29 Oct 2020 18:17:55 -0400 Subject: [PATCH] Changed groups so it only reposts top level posts and not every reply in a thread. --- app/lib/activitypub/activity/create.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index 172cb873b3..d9905e487d 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -492,6 +492,8 @@ class ActivityPub::Activity::Create < ActivityPub::Activity end def forward_for_group + return if @status.reply? + groups = Account.where(id: @status.mentions.pluck(:account_id)).where(actor_type: 'Group') groups.each do |group| -- GitLab