From 5b68d147d282bb49506da60f1ed58906dee50791 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 29 Dec 2018 22:39:08 -0700 Subject: [PATCH] Update StatusPipeline, only deliver if ap is enabled --- app/Jobs/StatusPipeline/NewStatusPipeline.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Jobs/StatusPipeline/NewStatusPipeline.php b/app/Jobs/StatusPipeline/NewStatusPipeline.php index 973223689..efb7d6b1d 100644 --- a/app/Jobs/StatusPipeline/NewStatusPipeline.php +++ b/app/Jobs/StatusPipeline/NewStatusPipeline.php @@ -37,7 +37,10 @@ class NewStatusPipeline implements ShouldQueue $status = $this->status; StatusEntityLexer::dispatch($status); - StatusActivityPubDeliver::dispatch($status); + + if(config('pixelfed.activitypub_enabled') == true) { + StatusActivityPubDeliver::dispatch($status); + } // Cache::forever('post.'.$status->id, $status); // $redis = Redis::connection();