From a95546ede0e42d9c04a1035156222f6bb5e52319 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 19 Apr 2019 01:00:17 +0900 Subject: [PATCH] Fix bug --- src/remote/activitypub/models/person.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts index c1c07c7bbf..37d9508252 100644 --- a/src/remote/activitypub/models/person.ts +++ b/src/remote/activitypub/models/person.ts @@ -318,11 +318,9 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint sharedInbox: person.sharedInbox || (person.endpoints ? person.endpoints.sharedInbox : undefined), featured: person.featured, emojis: emojiNames, - description: person.summary ? fromHtml(person.summary) : null, name: person.name, url: person.url, endpoints: person.endpoints, - fields, tags, isBot: object.type == 'Service', isCat: (person as any).isCat === true, @@ -350,6 +348,8 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint }); await UserProfiles.update({ userId: exist.id }, { + fields, + description: person.summary ? fromHtml(person.summary) : null, twitterUserId: services.twitter.userId, twitterScreenName: services.twitter.screenName, githubId: services.github.id,