From be91371b935b76e50add35e52befe2c080f794b9 Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Sun, 2 Jun 2024 09:09:21 +0800 Subject: [PATCH] fix: ignore blockade for authenticated users --- backend/functions/src/cloud-functions/crawler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/functions/src/cloud-functions/crawler.ts b/backend/functions/src/cloud-functions/crawler.ts index 78bc0ba..f9a4e6b 100644 --- a/backend/functions/src/cloud-functions/crawler.ts +++ b/backend/functions/src/cloud-functions/crawler.ts @@ -645,7 +645,7 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`; .limit(1) ))[0]; - if (blockade) { + if (blockade && !uid) { throw new SecurityCompromiseError(`Domain ${urlToCrawl.hostname} blocked until ${blockade.expireAt || 'Eternally'} due to previous abuse found on ${blockade.triggerUrl || 'site'}: ${blockade.triggerReason}`); }