mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Fix error when submitter ip not found
This commit is contained in:
@@ -225,7 +225,7 @@ async function shouldKeepSubmission(submissions: BrandingDBSubmission[], type: B
|
||||
if (cache.currentIP === null) cache.currentIP = getHashCache((ip + config.globalSalt) as IPAddress);
|
||||
const hashedIP = await cache.currentIP;
|
||||
|
||||
return submitterIP.hashedIP === hashedIP;
|
||||
return submitterIP?.hashedIP === hashedIP;
|
||||
} catch (e) {
|
||||
// give up on shadow hide for now
|
||||
Logger.error(`getBranding: Error while trying to find IP: ${e}`);
|
||||
|
||||
Reference in New Issue
Block a user