소스 검색

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;
 
 		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');
 			}
 		}