diff options
| author | Marie <marie@kaifa.ch> | 2024-02-12 23:14:55 +0000 |
|---|---|---|
| committer | Marie <marie@kaifa.ch> | 2024-02-12 23:14:55 +0000 |
| commit | 4007fbb8d8212f000e3959c95e306d22aa596566 (patch) | |
| tree | 3d94993613b2bbd9f3836aa9c3504dbc05f0fc00 /packages/backend/src/core/NoteReadService.ts | |
| parent | merge: fix: Update l-sushi.json5 to ensure the hashtag colour matches the mai... (diff) | |
| parent | fix: diff between NoteCreateService and NoteEditService (diff) | |
| download | sharkey-4007fbb8d8212f000e3959c95e306d22aa596566.tar.gz sharkey-4007fbb8d8212f000e3959c95e306d22aa596566.tar.bz2 sharkey-4007fbb8d8212f000e3959c95e306d22aa596566.zip | |
merge: Merge Upstream Changes (!408)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/408
Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Amelia Yukii <amelia.yukii@shourai.de>
Diffstat (limited to 'packages/backend/src/core/NoteReadService.ts')
| -rw-r--r-- | packages/backend/src/core/NoteReadService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/NoteReadService.ts b/packages/backend/src/core/NoteReadService.ts index c73cf76592..11791a4412 100644 --- a/packages/backend/src/core/NoteReadService.ts +++ b/packages/backend/src/core/NoteReadService.ts @@ -49,7 +49,7 @@ export class NoteReadService implements OnApplicationShutdown { //#endregion // スレッドミュート - const isThreadMuted = await this.noteThreadMutingsRepository.exist({ + const isThreadMuted = await this.noteThreadMutingsRepository.exists({ where: { userId: userId, threadId: note.threadId ?? note.id, @@ -70,7 +70,7 @@ export class NoteReadService implements OnApplicationShutdown { // 2秒経っても既読にならなかったら「未読の投稿がありますよ」イベントを発行する setTimeout(2000, 'unread note', { signal: this.#shutdownController.signal }).then(async () => { - const exist = await this.noteUnreadsRepository.exist({ where: { id: unread.id } }); + const exist = await this.noteUnreadsRepository.exists({ where: { id: unread.id } }); if (!exist) return; |