mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
[backend] Use correct identifier for filteredNoteCache
This commit is contained in:
parent
436fb826ac
commit
913f1659b3
1 changed files with 1 additions and 1 deletions
|
@ -19,6 +19,6 @@ export async function isFiltered(note: Note, user: { id: User["id"] } | null | u
|
||||||
if (!profile || profile.mutedWords.length < 1) return false;
|
if (!profile || profile.mutedWords.length < 1) return false;
|
||||||
const ts = (note.updatedAt ?? note.createdAt) as Date | string;
|
const ts = (note.updatedAt ?? note.createdAt) as Date | string;
|
||||||
const identifier = (typeof ts === "string" ? new Date(ts) : ts)?.getTime() ?? '0';
|
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)));
|
() => getWordHardMute(note, user, unique(profile!.mutedWords)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue