diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-21 17:38:09 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-21 17:38:09 +0900 |
| commit | 667d58bad4544d6e9dc75cfc4e6216179e2bc1aa (patch) | |
| tree | d6ac2da158cece66b1815c9bab754e333628c7c8 /src/server/api/stream/channels/global-timeline.ts | |
| parent | Revert "perf: Reduce database query" (diff) | |
| download | misskey-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.ts | 2 |
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); } |