diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-28 17:25:56 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-28 17:25:56 +0900 |
| commit | 47ce59d555eab91b0642b4e4b62c8ecc4ff2288a (patch) | |
| tree | 87302bf6729677d7eaf75b7397e4b62ba6568cdb /src/remote/activitypub/kernel | |
| parent | 1.3.0 (diff) | |
| download | sharkey-47ce59d555eab91b0642b4e4b62c8ecc4ff2288a.tar.gz sharkey-47ce59d555eab91b0642b4e4b62c8ecc4ff2288a.tar.bz2 sharkey-47ce59d555eab91b0642b4e4b62c8ecc4ff2288a.zip | |
wip
Diffstat (limited to 'src/remote/activitypub/kernel')
| -rw-r--r-- | src/remote/activitypub/kernel/announce/note.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote/activitypub/kernel/announce/note.ts b/src/remote/activitypub/kernel/announce/note.ts index a288dd499a..e2f3806d75 100644 --- a/src/remote/activitypub/kernel/announce/note.ts +++ b/src/remote/activitypub/kernel/announce/note.ts @@ -30,8 +30,8 @@ export default async function(resolver: Resolver, actor: IRemoteUser, activity: //#region Visibility let visibility = 'public'; - if (!activity.to.includes('https://www.w3.org/ns/activitystreams#Public')) visibility = 'unlisted'; - if (activity.cc.length == 0) visibility = 'private'; + if (!activity.to.includes('https://www.w3.org/ns/activitystreams#Public')) visibility = 'home'; + if (activity.cc.length == 0) visibility = 'followers'; // TODO if (visibility != 'public') throw new Error('unspported visibility'); //#endergion |