mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Put ap:public in cc for unlisted data
This commit is contained in:
parent
24b59a2560
commit
0c7a89a70a
15 changed files with 90 additions and 69 deletions
|
@ -54,10 +54,10 @@ export function getAPPublicValue (): 'https://www.w3.org/ns/activitystreams#Publ
|
|||
return 'https://www.w3.org/ns/activitystreams#Public'
|
||||
}
|
||||
|
||||
export function hasAPPublic (toOrCC: string[] | string) {
|
||||
export function hasAPPublic (collection: string[] | string) {
|
||||
const publicValue = getAPPublicValue()
|
||||
|
||||
return arrayify(toOrCC).some(f => f === 'as:Public' || publicValue)
|
||||
return arrayify(collection).some(f => f === 'as:Public' || publicValue)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue