mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-01 18:53:16 +00:00
Update StatusPipeline, only deliver if ap is enabled
This commit is contained in:
parent
9a3b70d23d
commit
5b68d147d2
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,10 @@ class NewStatusPipeline implements ShouldQueue
|
||||||
$status = $this->status;
|
$status = $this->status;
|
||||||
|
|
||||||
StatusEntityLexer::dispatch($status);
|
StatusEntityLexer::dispatch($status);
|
||||||
|
|
||||||
|
if(config('pixelfed.activitypub_enabled') == true) {
|
||||||
StatusActivityPubDeliver::dispatch($status);
|
StatusActivityPubDeliver::dispatch($status);
|
||||||
|
}
|
||||||
|
|
||||||
// Cache::forever('post.'.$status->id, $status);
|
// Cache::forever('post.'.$status->id, $status);
|
||||||
// $redis = Redis::connection();
|
// $redis = Redis::connection();
|
||||||
|
|
Loading…
Reference in a new issue