From 7522364f238b6bec172788f155e2799067a961a0 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 24 Jun 2019 22:21:54 -0600 Subject: [PATCH] Update Announce AP Transformer --- app/Transformer/ActivityPub/Verb/Announce.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Transformer/ActivityPub/Verb/Announce.php b/app/Transformer/ActivityPub/Verb/Announce.php index bac66943..682885b7 100644 --- a/app/Transformer/ActivityPub/Verb/Announce.php +++ b/app/Transformer/ActivityPub/Verb/Announce.php @@ -16,8 +16,8 @@ class Announce extends Fractal\TransformerAbstract 'actor' => $status->profile->permalink(), 'to' => ['https://www.w3.org/ns/activitystreams#Public'], 'cc' => [ - $status->parent()->profile->permalink(), - $status->parent()->profile->follower_url + $status->profile->permalink(), + $status->profile->follower_url ?? $status->profile->permalink('/followers') ], 'published' => $status->created_at->format(DATE_ISO8601), 'object' => $status->parent()->url(),