1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-03 12:36:06 +02:00

Support unlisted visibility type

This commit is contained in:
syuilo
2018-04-07 12:02:25 +09:00
parent 779a37c4ae
commit e68dd11ecc

View File

@@ -30,6 +30,7 @@ export default async function createNote(resolver: Resolver, actor: IRemoteUser,
//#region Visibility
let visibility = 'public';
if (!note.to.includes('https://www.w3.org/ns/activitystreams#Public')) visibility = 'unlisted';
if (note.cc.length == 0) visibility = 'private';
//#endergion