The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Allow premium features on links created before Jan 19, 2024
Steven Tey37ac41aad923
diff --git a/apps/web/lib/api/links/process-link.ts b/apps/web/lib/api/links/process-link.tsindex 4ff1be55f9..65faa1e058 100644--- a/apps/web/lib/api/links/process-link.ts+++ b/apps/web/lib/api/links/process-link.ts@@ -37,6 +37,7 @@ export async function processLink({ios,android,geo,+ createdAt,} = payload;const tagIds = combineTagIds(payload);@@ -58,8 +59,11 @@ export async function processLink({};}- // free plan restrictions- if (!workspace || workspace.plan === "free") {+ // free plan restrictions (after Jan 19, 2024)+ if (+ (!workspace || workspace.plan === "free") &&+ (!createdAt || new Date(createdAt) > new Date("2024-01-19"))+ ) {if (proxy || password || rewrite || expiresAt || ios || android || geo) {return {link: payload,