diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-07 12:05:15 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-07 12:05:15 +0900 |
| commit | ac5076c6782db4249b31b64318beec5dbce2f37a (patch) | |
| tree | 4d6abb60a266bff0c30d2093a3076296ff64b5c0 | |
| parent | Support unlisted visibility type (diff) | |
| download | misskey-ac5076c6782db4249b31b64318beec5dbce2f37a.tar.gz misskey-ac5076c6782db4249b31b64318beec5dbce2f37a.tar.bz2 misskey-ac5076c6782db4249b31b64318beec5dbce2f37a.zip | |
Ignore post that not public
| -rw-r--r-- | src/remote/activitypub/act/create/note.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/remote/activitypub/act/create/note.ts b/src/remote/activitypub/act/create/note.ts index df9f1d69e4..c40facea43 100644 --- a/src/remote/activitypub/act/create/note.ts +++ b/src/remote/activitypub/act/create/note.ts @@ -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 添付メディア |