mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: remove escape
This commit is contained in:
@@ -64,8 +64,7 @@ async function getThumbs(set) {
|
||||
if (cached !== undefined) {
|
||||
return cached.slice();
|
||||
}
|
||||
let thumbs = await db.getSortedSetRange(set, 0, -1);
|
||||
thumbs = thumbs.map(t => validator.escape(String(t)));
|
||||
const thumbs = await db.getSortedSetRange(set, 0, -1);
|
||||
cache.set(set, thumbs);
|
||||
return thumbs.slice();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user