mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 19:23:08 +02:00
Ignore post that not public
This commit is contained in:
parent
e68dd11ecc
commit
ac5076c678
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ export default async function createNote(resolver: Resolver, actor: IRemoteUser,
|
|||
let visibility = 'public';
|
||||
if (!note.to.includes('https://www.w3.org/ns/activitystreams#Public')) visibility = 'unlisted';
|
||||
if (note.cc.length == 0) visibility = 'private';
|
||||
// TODO
|
||||
if (visibility != 'public') throw new Error('unspported visibility');
|
||||
//#endergion
|
||||
|
||||
//#region 添付メディア
|
||||
|
|
Loading…
Reference in a new issue