From 6c25b9dbaa974a23fa3613cd16743e0d792f1404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 7 Oct 2021 16:24:53 -0400 Subject: [PATCH] test: remove escape --- src/topics/thumbs.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/topics/thumbs.js b/src/topics/thumbs.js index cd0a93f3cd..48520d4f81 100644 --- a/src/topics/thumbs.js +++ b/src/topics/thumbs.js @@ -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(); }