mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Speed-up NSFW checks
This commit is contained in:
+1
-1
@@ -210,7 +210,7 @@ module.exports = class Util {
|
||||
if (!uris) return str;
|
||||
for (const uri of uris) {
|
||||
const parsed = url.parse(uri);
|
||||
if (!siteList.some(pornURL => parsed.host === pornURL)) continue;
|
||||
if (!siteList.includes(parsed.host)) continue;
|
||||
str = str.replace(uri, text);
|
||||
}
|
||||
return str;
|
||||
|
||||
Reference in New Issue
Block a user