From a73b2f0002429f741e064fc55e2edad5677f4a6c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 5 Jun 2022 02:49:29 -0600 Subject: [PATCH] Update Profile model --- app/Profile.php | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/app/Profile.php b/app/Profile.php index 85eeae01f..dedc2739f 100644 --- a/app/Profile.php +++ b/app/Profile.php @@ -271,7 +271,28 @@ class Profile extends Model $this->permalink('/followers') ] ]; - break; + break; + + case 'unlisted': + $audience = [ + 'to' => [ + ], + 'cc' => [ + 'https://www.w3.org/ns/activitystreams#Public', + $this->permalink('/followers') + ] + ]; + break; + + case 'private': + $audience = [ + 'to' => [ + $this->permalink('/followers') + ], + 'cc' => [ + ] + ]; + break; } return $audience; }