From d85fdb83044cc5cd897cd96eb4b47be0bf8d1f85 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 24 Jun 2019 22:22:19 -0600 Subject: [PATCH] Update StatusPipeline --- app/Jobs/StatusPipeline/StatusActivityPubDeliver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php b/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php index a2b6d6f9..ec424310 100644 --- a/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php +++ b/app/Jobs/StatusPipeline/StatusActivityPubDeliver.php @@ -49,6 +49,7 @@ class StatusActivityPubDeliver implements ShouldQueue public function handle() { $status = $this->status; + $profile = $status->profile; if($status->local == false || $status->url || $status->uri) { return; @@ -56,12 +57,11 @@ class StatusActivityPubDeliver implements ShouldQueue $audience = $status->profile->getAudienceInbox(); - if(empty($audience) || $status->visibility != 'public') { + if(empty($audience) || $status->scope != 'public') { // Return on profiles with no remote followers return; } - $profile = $status->profile; $fractal = new Fractal\Manager(); $fractal->setSerializer(new ArraySerializer());