mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
[backend] Use correct identifier for filteredNoteCache
This commit is contained in:
parent
436fb826ac
commit
913f1659b3
@ -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)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user