From 913f1659b3ad58b49efdb22fac8d21c1f520d8fe Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Mon, 27 Nov 2023 22:22:24 +0100 Subject: [PATCH] [backend] Use correct identifier for filteredNoteCache --- packages/backend/src/misc/is-filtered.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/misc/is-filtered.ts b/packages/backend/src/misc/is-filtered.ts index b4002757c..a0853ebbe 100644 --- a/packages/backend/src/misc/is-filtered.ts +++ b/packages/backend/src/misc/is-filtered.ts @@ -19,6 +19,6 @@ export async function isFiltered(note: Note, user: { id: User["id"] } | null | u if (!profile || profile.mutedWords.length < 1) return false; const ts = (note.updatedAt ?? note.createdAt) as Date | string; const identifier = (typeof ts === "string" ? new Date(ts) : ts)?.getTime() ?? '0'; - return filteredNoteCache.fetch(`${note.id}:${ts}:${user.id}`, + return filteredNoteCache.fetch(`${note.id}:${identifier}:${user.id}`, () => getWordHardMute(note, user, unique(profile!.mutedWords))); }