summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/models
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-12-11 21:16:20 +0900
committerGitHub <noreply@github.com>2020-12-11 21:16:20 +0900
commit69c3c4e3dc71c722f9d85c4d2d6a112b6ce85296 (patch)
tree276f2dfa111772f8a2be5c5cabea2a4085d0c6a3 /src/remote/activitypub/models
parentMerge pull request #6960 from syuilo/dependabot/npm_and_yarn/ws-7.4.1 (diff)
downloadmisskey-69c3c4e3dc71c722f9d85c4d2d6a112b6ce85296.tar.gz
misskey-69c3c4e3dc71c722f9d85c4d2d6a112b6ce85296.tar.bz2
misskey-69c3c4e3dc71c722f9d85c4d2d6a112b6ce85296.zip
Resolve #6806 (#6935)
* :v: * :v: * Update privacy.vue
Diffstat (limited to 'src/remote/activitypub/models')
-rw-r--r--src/remote/activitypub/models/person.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts
index 9f6392174b..f0a312b21a 100644
--- a/src/remote/activitypub/models/person.ts
+++ b/src/remote/activitypub/models/person.ts
@@ -153,6 +153,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<Us
lastFetchedAt: new Date(),
name: person.name,
isLocked: !!person.manuallyApprovesFollowers,
+ isExplorable: !!person.discoverable,
username: person.preferredUsername,
usernameLower: person.preferredUsername!.toLowerCase(),
host,
@@ -336,6 +337,7 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint
isBot: object.type === 'Service',
isCat: (person as any).isCat === true,
isLocked: !!person.manuallyApprovesFollowers,
+ isExplorable: !!person.discoverable,
} as Partial<User>;
if (avatar) {