From 6a109bd251b10f6e34c234aafe6baffe72871398 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 19 Aug 2018 05:26:34 +0900 Subject: [PATCH] Fix bug --- src/remote/activitypub/models/person.ts | 3 +++ src/server/api/private/signup.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts index c292d0241..e9ab7d1bd 100644 --- a/src/remote/activitypub/models/person.ts +++ b/src/remote/activitypub/models/person.ts @@ -11,6 +11,7 @@ import { isCollectionOrOrderedCollection, IObject, IPerson } from '../type'; import { IDriveFile } from '../../../models/drive-file'; import Meta from '../../../models/meta'; import htmlToMFM from '../../../mfm/html-to-mfm'; +import { updateUserStats } from '../../../services/update-chart'; const log = debug('misskey:activitypub'); @@ -148,6 +149,8 @@ export async function createPerson(value: any, resolver?: Resolver): Promise { }, { upsert: true }); //#endregion + updateUserStats(account, true); + // Response ctx.body = await pack(account); };