mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update StatusEntityLexer, only add specific status types to PublicTimelineService
This commit is contained in:
parent
f09845bc0b
commit
1fdcbe5bf9
1 changed files with 9 additions and 2 deletions
|
@ -150,17 +150,24 @@ class StatusEntityLexer implements ShouldQueue
|
|||
public function deliver()
|
||||
{
|
||||
$status = $this->status;
|
||||
$types = [
|
||||
'photo',
|
||||
'photo:album',
|
||||
'video',
|
||||
'video:album',
|
||||
'photo:video:album'
|
||||
];
|
||||
|
||||
if(config_cache('pixelfed.bouncer.enabled')) {
|
||||
Bouncer::get($status);
|
||||
}
|
||||
|
||||
if($status->uri == null && $status->scope == 'public') {
|
||||
if($status->uri == null && $status->scope == 'public' && in_array($status->type, $types)) {
|
||||
PublicTimelineService::add($status->id);
|
||||
}
|
||||
|
||||
if(config_cache('federation.activitypub.enabled') == true && config('app.env') == 'production') {
|
||||
StatusActivityPubDeliver::dispatch($this->status);
|
||||
StatusActivityPubDeliver::dispatch($status);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue