浏览代码

Update StatusEntityLexer, prevent boosts and replies from being added to PublicTimelineService

Daniel Supernault 3 年之前
父节点
当前提交
327073724f
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      app/Jobs/StatusPipeline/StatusEntityLexer.php

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

@@ -162,7 +162,12 @@ class StatusEntityLexer implements ShouldQueue
 			Bouncer::get($status);
 		}
 
-		if($status->uri == null && $status->scope == 'public' && in_array($status->type, $types)) {
+		if( $status->uri == null &&
+			$status->scope == 'public' &&
+			in_array($status->type, $types) &&
+			$status->in_reply_to_id === null &&
+			$status->reblog_of_id === null
+		) {
 			PublicTimelineService::add($status->id);
 		}