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

This commit is contained in:
Daniel Supernault 2021-12-21 22:48:47 -07:00
parent 5e1e207329
commit 327073724f
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -162,7 +162,12 @@ class StatusEntityLexer implements ShouldQueue
Bouncer::get($status); 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); PublicTimelineService::add($status->id);
} }