mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-19 05:58:32 +03:00
Fix shadow hide video branding logic
This commit is contained in:
@@ -208,7 +208,7 @@ async function shouldKeepSubmission(submissions: BrandingDBSubmission[], type: B
|
|||||||
if (cache.currentIP === null) cache.currentIP = getHashCache((ip + config.globalSalt) as IPAddress);
|
if (cache.currentIP === null) cache.currentIP = getHashCache((ip + config.globalSalt) as IPAddress);
|
||||||
const hashedIP = await cache.currentIP;
|
const hashedIP = await cache.currentIP;
|
||||||
|
|
||||||
return submitterIP.hashedIP !== hashedIP;
|
return submitterIP.hashedIP === hashedIP;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// give up on shadow hide for now
|
// give up on shadow hide for now
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user