mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update Profile model
This commit is contained in:
parent
4ecbd7cbe4
commit
a73b2f0002
1 changed files with 22 additions and 1 deletions
|
@ -272,6 +272,27 @@ class Profile extends Model
|
|||
]
|
||||
];
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue