mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-27 03:23:01 +00:00
Support unlisted visibility type
This commit is contained in:
parent
779a37c4ae
commit
e68dd11ecc
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ export default async function createNote(resolver: Resolver, actor: IRemoteUser,
|
||||||
|
|
||||||
//#region Visibility
|
//#region Visibility
|
||||||
let visibility = 'public';
|
let visibility = 'public';
|
||||||
|
if (!note.to.includes('https://www.w3.org/ns/activitystreams#Public')) visibility = 'unlisted';
|
||||||
if (note.cc.length == 0) visibility = 'private';
|
if (note.cc.length == 0) visibility = 'private';
|
||||||
//#endergion
|
//#endergion
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue