mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 12:52:26 +00:00
Normalize comment cache keys
This commit is contained in:
1 parent
6e29e2440f
commit
a6dcc44c12
2 files changed
+40
-1
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user