1
0
Fork 0

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
1 changed files with 4 additions and 1 deletions

View File

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