Browse Source

Update AP helpers, fix fanout scope

Daniel Supernault 1 year ago
parent
commit
33a60e767d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app/Util/ActivityPub/Helpers.php

+ 5 - 1
app/Util/ActivityPub/Helpers.php

@@ -538,7 +538,11 @@ class Helpers {
 
 
         IncrementPostCount::dispatch($pid)->onQueue('low');
         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;
         return $status;
     }
     }