瀏覽代碼

Update StatusEntityLexer, skip reblogs on FeedInsertPipeline

Daniel Supernault 1 年之前
父節點
當前提交
386e64d5e8
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app/Jobs/StatusPipeline/StatusEntityLexer.php

+ 4 - 1
app/Jobs/StatusPipeline/StatusEntityLexer.php

@@ -160,7 +160,10 @@ class StatusEntityLexer implements ShouldQueue
 		$status = $this->status;
 		$status = $this->status;
 
 
 		if(config('exp.cached_home_timeline')) {
 		if(config('exp.cached_home_timeline')) {
-			if($status->in_reply_to_id == null && in_array($status->scope, ['public', 'unlisted', 'private'])) {
+			if( $status->in_reply_to_id === null &&
+				$status->reblog_of_id === null &&
+				in_array($status->scope, ['public', 'unlisted', 'private'])
+			) {
 				FeedInsertPipeline::dispatch($status->id, $status->profile_id)->onQueue('feed');
 				FeedInsertPipeline::dispatch($status->id, $status->profile_id)->onQueue('feed');
 			}
 			}
 		}
 		}