mirror of https://github.com/pixelfed/pixelfed.git
Update StatusPipeline, only deliver if ap is enabled
This commit is contained in:
parent
9a3b70d23d
commit
5b68d147d2
|
@ -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 New Issue