From 1465dc9677d0491ff043c991641432557629a436 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Tue, 24 Apr 2018 03:36:40 +0300 Subject: [PATCH] fix(search): fix some unsafe results in safe search --- src/background/api.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/background/api.js b/src/background/api.js index b2d92ac..97f2a84 100644 --- a/src/background/api.js +++ b/src/background/api.js @@ -374,6 +374,10 @@ module.exports = ({ for(const torrent of torrents) { search[torrent.hash] = Object.assign(baseRowData(torrent), search[torrent.hash]) + + // temporary ignore adult content in search (workaroud) + if(safeSearch && search[torrent.hash].contentCategory == 'xxx') + delete search[torrent.hash] } callback(Object.values(search));