Skip to content

Commit fb0502d

Browse files
authored
Check for restricted accounts in socialProfileSchema (dubinc#3667)
1 parent 7d96711 commit fb0502d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/web/lib/api/scrape-creators/schema.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ export const socialProfileSchema = z.preprocess(
99
typeof data.message === "string" &&
1010
(data.message.toLowerCase().includes("doesn't exist") ||
1111
data.message.toLowerCase().includes("does not exist") ||
12-
data.message.toLowerCase().includes("not found"))
12+
data.message.toLowerCase().includes("not found") ||
13+
data.message.toLowerCase().includes("restricted"))
1314
) {
1415
return {
1516
...data,

0 commit comments

Comments
 (0)