Skip to content

Commit 1bf9993

Browse files
committed
fix(library): keep every referencing post out of related posts, not just the six shown
1 parent c58fda3 commit 1bf9993

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/(landing)/library/[slug]

‎apps/sim/app/(landing)/library/[slug]/page.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default async function Page({ params }: { params: Promise<{ slug: string
5353
const backlinks = linkingPosts.slice(0, MAX_BACKLINKS)
5454
const related = await getRelatedPosts(slug, {
5555
limit: MAX_RELATED,
56-
exclude: new Set(backlinks.map((p) => p.slug)),
56+
exclude: new Set(linkingPosts.map((p) => p.slug)),
5757
})
5858
const hasAfterArticle = backlinks.length > 0 || comparisons.length > 0
5959

0 commit comments

Comments
 (0)