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.

Update process-link.ts

Steven Teyf4fc537f1867
diff --git a/apps/web/lib/api/links/process-link.ts b/apps/web/lib/api/links/process-link.ts
index 629ae3618a..c4adc75098 100644
--- a/apps/web/lib/api/links/process-link.ts
+++ b/apps/web/lib/api/links/process-link.ts
@@ -313,13 +313,6 @@ export async function processLink<T extends Record<string, any>>({
code: "unprocessable_entity",
};
}
- if (rewrite) {
- return {
- link: payload,
- error: "You cannot use link cloaking with bulk link creation.",
- code: "unprocessable_entity",
- };
- }
// only perform tag validity checks if:
// - not bulk creation (we do that check separately in the route itself)