Update StatusEntityLexer, skip reblogs on FeedInsertPipeline

This commit is contained in:
Daniel Supernault 2023-11-12 23:52:44 -07:00
parent 125208fb9e
commit 386e64d5e8
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

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