From 94ee7a2f258e821c7efe5dbb5c41fac0fd073022 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 24 Dec 2018 22:21:57 -0700 Subject: [PATCH] Update AP delivery job --- app/Jobs/StatusPipeline/StatusActivityPubDeliver.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php b/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php index 466dbcd99..1100f0988 100644 --- a/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php +++ b/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php @@ -38,6 +38,10 @@ class StatusActivityPubDeliver implements ShouldQueue { $status = $this->status; + if($status->local == true || $status->url || $status->uri) { + return; + } + $audience = $status->profile->getAudienceInbox(); $profile = $status->profile; @@ -49,7 +53,5 @@ class StatusActivityPubDeliver implements ShouldQueue foreach($audience as $url) { Helpers::sendSignedObject($profile, $url, $activity); } - - // todo: fanout on write } }