summaryrefslogtreecommitdiff
path: root/src/server/api/stream/channels/global-timeline.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-21 17:38:09 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-03-21 17:38:09 +0900
commit667d58bad4544d6e9dc75cfc4e6216179e2bc1aa (patch)
treed6ac2da158cece66b1815c9bab754e333628c7c8 /src/server/api/stream/channels/global-timeline.ts
parentRevert "perf: Reduce database query" (diff)
downloadmisskey-667d58bad4544d6e9dc75cfc4e6216179e2bc1aa.tar.gz
misskey-667d58bad4544d6e9dc75cfc4e6216179e2bc1aa.tar.bz2
misskey-667d58bad4544d6e9dc75cfc4e6216179e2bc1aa.zip
better note read handling
Diffstat (limited to 'src/server/api/stream/channels/global-timeline.ts')
-rw-r--r--src/server/api/stream/channels/global-timeline.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/api/stream/channels/global-timeline.ts b/src/server/api/stream/channels/global-timeline.ts
index 8c97e67226..8353f45323 100644
--- a/src/server/api/stream/channels/global-timeline.ts
+++ b/src/server/api/stream/channels/global-timeline.ts
@@ -56,6 +56,8 @@ export default class extends Channel {
// そのためレコードが存在するかのチェックでは不十分なので、改めてcheckWordMuteを呼んでいる
if (this.userProfile && await checkWordMute(note, this.user, this.userProfile.mutedWords)) return;
+ this.connection.cacheNote(note);
+
this.send('note', note);
}