From 0c59a55e6d4d1269d8aefba682e723d519d25041 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 11 Oct 2019 17:58:35 -0600 Subject: [PATCH] Update SharePipeline, federate self boosts --- app/Jobs/SharePipeline/SharePipeline.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/Jobs/SharePipeline/SharePipeline.php b/app/Jobs/SharePipeline/SharePipeline.php index b62c5126..c7328db3 100644 --- a/app/Jobs/SharePipeline/SharePipeline.php +++ b/app/Jobs/SharePipeline/SharePipeline.php @@ -61,7 +61,12 @@ class SharePipeline implements ShouldQueue ->whereItemType('App\Status') ->count(); - if ($target->id === $status->profile_id || $exists !== 0) { + if ($target->id === $status->profile_id) { + $this->remoteAnnounceDeliver(); + return true; + } + + if( $exists !== 0) { return true; } @@ -88,6 +93,9 @@ class SharePipeline implements ShouldQueue public function remoteAnnounceDeliver() { + if(config('federation.activitypub.enabled') == false) { + return true; + } $status = $this->status; $profile = $status->profile;