mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 17:29:05 +01:00
Ignore post that not public
This commit is contained in:
parent
ad4378bda8
commit
20ae8012cf
@ -32,6 +32,8 @@ export default async function createNote(resolver: Resolver, actor: IRemoteUser,
|
|||||||
let visibility = 'public';
|
let visibility = 'public';
|
||||||
if (!note.to.includes('https://www.w3.org/ns/activitystreams#Public')) visibility = 'unlisted';
|
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';
|
||||||
|
// TODO
|
||||||
|
if (visibility != 'public') throw new Error('unspported visibility');
|
||||||
//#endergion
|
//#endergion
|
||||||
|
|
||||||
//#region 添付メディア
|
//#region 添付メディア
|
||||||
|
Loading…
Reference in New Issue
Block a user