diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-07 12:02:25 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-07 12:02:25 +0900 |
| commit | e68dd11eccb0adfe957e598c5e385035d4e493da (patch) | |
| tree | 80487c0633d608100e6908a09f2ac6fa505dcad4 /src | |
| parent | Visibility support (diff) | |
| download | sharkey-e68dd11eccb0adfe957e598c5e385035d4e493da.tar.gz sharkey-e68dd11eccb0adfe957e598c5e385035d4e493da.tar.bz2 sharkey-e68dd11eccb0adfe957e598c5e385035d4e493da.zip | |
Support unlisted visibility type
Diffstat (limited to 'src')
| -rw-r--r-- | src/remote/activitypub/act/create/note.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/remote/activitypub/act/create/note.ts b/src/remote/activitypub/act/create/note.ts index 88e3a875a6..df9f1d69e4 100644 --- a/src/remote/activitypub/act/create/note.ts +++ b/src/remote/activitypub/act/create/note.ts @@ -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 |