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.

deprecate loooooooo.ng support

Steven Teyca75acd9ec43
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/domains/default/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/domains/default/page-client.tsx
index 89bcaee3c5..ebe4da52d7 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/domains/default/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/domains/default/page-client.tsx
@@ -75,14 +75,9 @@ export function DefaultDomains() {
</div>
<div className="mt-2 grid grid-cols-1 gap-3">
- {DUB_DOMAINS.filter((domain) => {
- if (domain.slug === "dub.link") {
- return flags?.noDubLink ? false : true;
- } else if (domain.slug === "loooooooo.ng") {
- return false;
- }
- return true;
- }).map(({ slug, description }) => {
+ {DUB_DOMAINS.filter(
+ (domain) => domain.slug !== "dub.link" || !flags?.noDubLink,
+ ).map(({ slug, description }) => {
return (
<div
key={slug}
diff --git a/apps/web/lib/api/links/process-link.ts b/apps/web/lib/api/links/process-link.ts
index 3a4542ec22..38024bdd79 100644
--- a/apps/web/lib/api/links/process-link.ts
+++ b/apps/web/lib/api/links/process-link.ts
@@ -256,7 +256,7 @@ export async function processLink<T extends Record<string, any>>({
key = await getRandomKey({
domain,
prefix: payload["prefix"],
- length: keyLength || (domain === "loooooooo.ng" ? 69 : 7),
+ length: keyLength,
});
} else if (!skipKeyChecks) {
const processedKey = processKey({ domain, key });
diff --git a/packages/utils/src/constants/dub-domains.ts b/packages/utils/src/constants/dub-domains.ts
index 56001585ba..163d1a6b74 100644
--- a/packages/utils/src/constants/dub-domains.ts
+++ b/packages/utils/src/constants/dub-domains.ts
@@ -145,17 +145,6 @@ export const DUB_DOMAINS = [
"Branded domain for Figma links (portfolios, prototypes, presentations, etc.).",
projectId: DUB_WORKSPACE_ID,
},
- {
- id: "clugy7euh000a11h6ignmj42o",
- slug: "loooooooo.ng",
- verified: true,
- primary: false,
- archived: true,
- placeholder: "https://d.to/long",
- description:
- "Branded domain for lengthening links instead of shortening them (April Fool's Prank).",
- projectId: DUB_WORKSPACE_ID,
- },
]
: []),
];