summaryrefslogtreecommitdiff
path: root/src/services/note/create.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-08-18 23:56:44 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-08-18 23:56:44 +0900
commit335200c31e0c1f623f3b16d277ef14ffcab64384 (patch)
tree74fb307d04db96b673b2f7c01d0981dd561ff9aa /src/services/note/create.ts
parentwip (diff)
downloadmisskey-335200c31e0c1f623f3b16d277ef14ffcab64384.tar.gz
misskey-335200c31e0c1f623f3b16d277ef14ffcab64384.tar.bz2
misskey-335200c31e0c1f623f3b16d277ef14ffcab64384.zip
wip
Diffstat (limited to 'src/services/note/create.ts')
-rw-r--r--src/services/note/create.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts
index 521750dc84..d8f0f57b63 100644
--- a/src/services/note/create.ts
+++ b/src/services/note/create.ts
@@ -23,6 +23,7 @@ import registerHashtag from '../register-hashtag';
import isQuote from '../../misc/is-quote';
import { TextElementMention } from '../../mfm/parse/elements/mention';
import { TextElementHashtag } from '../../mfm/parse/elements/hashtag';
+import { updateNoteStats } from '../update-chart';
type NotificationType = 'reply' | 'renote' | 'quote' | 'mention';
@@ -142,6 +143,9 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
return;
}
+ // 統計を更新
+ updateNoteStats(note, true);
+
// ハッシュタグ登録
tags.map(tag => registerHashtag(user, tag));