fix(search): fix some unsafe results in safe search
This commit is contained in:
parent
e5e9aa2a88
commit
1465dc9677
@ -374,6 +374,10 @@ module.exports = ({
|
|||||||
for(const torrent of torrents)
|
for(const torrent of torrents)
|
||||||
{
|
{
|
||||||
search[torrent.hash] = Object.assign(baseRowData(torrent), search[torrent.hash])
|
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));
|
callback(Object.values(search));
|
||||||
|
Loading…
Reference in New Issue
Block a user