mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-26 06:53:17 +00:00
Update StatusEntityLexer, skip reblogs on FeedInsertPipeline
This commit is contained in:
parent
125208fb9e
commit
386e64d5e8
1 changed files with 4 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue