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) {
|
if (cached !== undefined) {
|
||||||
return cached.slice();
|
return cached.slice();
|
||||||
}
|
}
|
||||||
let thumbs = await db.getSortedSetRange(set, 0, -1);
|
const thumbs = await db.getSortedSetRange(set, 0, -1);
|
||||||
thumbs = thumbs.map(t => validator.escape(String(t)));
|
|
||||||
cache.set(set, thumbs);
|
cache.set(set, thumbs);
|
||||||
return thumbs.slice();
|
return thumbs.slice();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user