From 33a60e767d66ae25213a2a1dcb84379ae96831ec Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 15 Nov 2023 23:43:57 -0700 Subject: [PATCH] Update AP helpers, fix fanout scope --- app/Util/ActivityPub/Helpers.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index 459bda7c3..612c38d75 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -538,7 +538,11 @@ class Helpers { IncrementPostCount::dispatch($pid)->onQueue('low'); - FeedInsertRemotePipeline::dispatch($status->id, $pid)->onQueue('feed'); + if( $status->in_reply_to_id === null && + in_array($status->type, ['photo', 'photo:album', 'video', 'video:album', 'photo:video:album']) + ) { + FeedInsertRemotePipeline::dispatch($status->id, $pid)->onQueue('feed'); + } return $status; }