kopia lustrzana https://github.com/pixelfed/pixelfed
Update Profile model
rodzic
4ecbd7cbe4
commit
a73b2f0002
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue