From 509cdae8322ad286c444ef8a2b31b645f5fdfadd Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 23 Jun 2018 19:16:50 +0900 Subject: [PATCH] Fix bug --- src/remote/activitypub/models/person.ts | 32 ++++++++++++++++------- src/remote/activitypub/renderer/person.ts | 2 +- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts index f233346395..28cbdb1ff7 100644 --- a/src/remote/activitypub/models/person.ts +++ b/src/remote/activitypub/models/person.ts @@ -47,16 +47,28 @@ export async function createPerson(value: any, resolver?: Resolver): Promise { const id = `${config.url}/users/${user._id}`; return { - type: 'Person', + type: user.isBot ? 'Service' : 'Person', id, inbox: `${id}/inbox`, outbox: `${id}/outbox`,