Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Check for restricted accounts in socialProfileSchema (#3667)

Pedro Ladeirafb0502d64f02
diff --git a/apps/web/lib/api/scrape-creators/schema.ts b/apps/web/lib/api/scrape-creators/schema.ts
index df835ac71e..7e02e05594 100644
--- a/apps/web/lib/api/scrape-creators/schema.ts
+++ b/apps/web/lib/api/scrape-creators/schema.ts
@@ -9,7 +9,8 @@ export const socialProfileSchema = z.preprocess(
typeof data.message === "string" &&
(data.message.toLowerCase().includes("doesn't exist") ||
data.message.toLowerCase().includes("does not exist") ||
- data.message.toLowerCase().includes("not found"))
+ data.message.toLowerCase().includes("not found") ||
+ data.message.toLowerCase().includes("restricted"))
) {
return {
...data,