فهرست منبع

Update AP helpers, fix fanout scope

Daniel Supernault 1 سال پیش
والد
کامیت
33a60e767d
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  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');
 
-        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;
     }