summaryrefslogtreecommitdiff
path: root/src/remote
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-21 07:10:35 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-21 07:10:35 +0900
commitba0e57396d5ab609e18dcaf4ba8235376cf429ee (patch)
treef73fed603024739483d3edd51fc2191a9d818ebb /src/remote
parentFix: Remove duplicated key (diff)
downloadsharkey-ba0e57396d5ab609e18dcaf4ba8235376cf429ee.tar.gz
sharkey-ba0e57396d5ab609e18dcaf4ba8235376cf429ee.tar.bz2
sharkey-ba0e57396d5ab609e18dcaf4ba8235376cf429ee.zip
Refactoring
Diffstat (limited to 'src/remote')
-rw-r--r--src/remote/activitypub/models/person.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts
index ee95e43ad3..244b62f470 100644
--- a/src/remote/activitypub/models/person.ts
+++ b/src/remote/activitypub/models/person.ts
@@ -10,7 +10,7 @@ import { isCollectionOrOrderedCollection, isCollection, 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';
+import { coreChart } from '../../../services/stats';
import { URL } from 'url';
import { resolveNote } from './note';
@@ -180,7 +180,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<IU
}
}, { upsert: true });
- updateUserStats(user, true);
+ coreChart.updateUserStats(user, true);
//#endregion
//#region アイコンとヘッダー画像をフェッチ