Normalize comment cache keys

This commit is contained in:
thePR0M3TH3AN committed 2025-12-12 10:29:33 -05:00
1 parent 6e29e2440f
commit a6dcc44c12
2 files changed
+40 -1

No files matched your search

+5 -1
View File
@@ -324,7 +324,11 @@ export default class CommentThreadService {
getCommentCacheKey(videoEventId) {
const normalized = normalizeString(videoEventId);
return normalized ? `${COMMENT_CACHE_PREFIX}${normalized}` : "";
if (!normalized) {
return "";
}
return `${COMMENT_CACHE_PREFIX}${normalized.toLowerCase()}`;
}
getCachedComments(videoEventId) {