Skip to content

Open source alternative to Semrush and Ahrefs

Hide likely spam backlinks on the dashboard backlinks card (#961)

Carter Smith6367c76d2b3e
diff --git a/src/server/features/dashboard/services/DashboardSiteService.ts b/src/server/features/dashboard/services/DashboardSiteService.ts
index c29504f7..0abe8885 100644
--- a/src/server/features/dashboard/services/DashboardSiteService.ts
+++ b/src/server/features/dashboard/services/DashboardSiteService.ts
@@ -39,7 +39,7 @@ async function getBacklinks(
billingCustomer: BillingCustomerContext,
) {
const result = await DashboardCacheService.readThrough({
- namespace: "dashboard:links",
+ namespace: "dashboard:links:v2",
organizationId: billingCustomer.organizationId,
params: input,
schema: z.array(backlinksItemSchema),
@@ -59,7 +59,6 @@ async function getBacklinks(
limit: 25,
mode: "one_per_domain",
status: input.kind === "lost" ? "lost" : "live",
- hideSpam: false,
orderBy: [input.kind === "lost" ? "last_seen,desc" : "first_seen,desc"],
filters:
input.kind === "all"
@@ -289,7 +288,7 @@ async function getLinkActivity(
scope: "subdomains",
}).apiTarget;
const domains = await DashboardCacheService.readThrough({
- namespace: "dashboard:new-domains",
+ namespace: "dashboard:new-domains:v2",
organizationId: billingCustomer.organizationId,
params: { target },
schema: z.array(referringDomainItemSchema),
@@ -304,7 +303,6 @@ async function getLinkActivity(
target,
includeSubdomains: true,
limit: 25,
- hideSpam: false,
orderBy: ["first_seen,desc"],
filters: [["first_seen", ">=", `${from} 00:00:00 +00:00`]],
});