From 69c3c4e3dc71c722f9d85c4d2d6a112b6ce85296 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 11 Dec 2020 21:16:20 +0900 Subject: Resolve #6806 (#6935) * :v: * :v: * Update privacy.vue --- src/remote/activitypub/models/person.ts | 2 ++ src/remote/activitypub/renderer/index.ts | 1 + src/remote/activitypub/renderer/person.ts | 1 + src/remote/activitypub/type.ts | 1 + 4 files changed, 5 insertions(+) (limited to 'src/remote/activitypub') 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; if (avatar) { diff --git a/src/remote/activitypub/renderer/index.ts b/src/remote/activitypub/renderer/index.ts index cf0fd8d85a..a34febff2f 100644 --- a/src/remote/activitypub/renderer/index.ts +++ b/src/remote/activitypub/renderer/index.ts @@ -38,6 +38,7 @@ export const attachLdSignature = async (activity: any, user: ILocalUser): Promis toot: 'http://joinmastodon.org/ns#', Emoji: 'toot:Emoji', featured: 'toot:featured', + discoverable: 'toot:discoverable', // schema schema: 'http://schema.org#', PropertyValue: 'schema:PropertyValue', diff --git a/src/remote/activitypub/renderer/person.ts b/src/remote/activitypub/renderer/person.ts index 87dca19acd..4462f88315 100644 --- a/src/remote/activitypub/renderer/person.ts +++ b/src/remote/activitypub/renderer/person.ts @@ -70,6 +70,7 @@ export async function renderPerson(user: ILocalUser) { image: banner ? renderImage(banner) : null, tag, manuallyApprovesFollowers: user.isLocked, + discoverable: !!user.isExplorable, publicKey: renderKey(user, keypair, `#main-key`), isCat: user.isCat, attachment: attachment.length ? attachment : undefined diff --git a/src/remote/activitypub/type.ts b/src/remote/activitypub/type.ts index 5c01c24b53..db866ae67a 100644 --- a/src/remote/activitypub/type.ts +++ b/src/remote/activitypub/type.ts @@ -135,6 +135,7 @@ export interface IPerson extends IObject { name?: string; preferredUsername?: string; manuallyApprovesFollowers?: boolean; + discoverable?: boolean; inbox?: string; sharedInbox?: string; // 後方互換性のため publicKey: { -- cgit v1.2.3-freya