Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Standalone check XOR

Blue Mouse00734ff7b541
diff --git a/web/app/utils/getPosts.ts b/web/app/utils/getPosts.ts
index 71580e53c..ea288be6f 100644
--- a/web/app/utils/getPosts.ts
+++ b/web/app/utils/getPosts.ts
@@ -56,7 +56,7 @@ export async function getPost(slug: string, category?: string, tryStandalone?: b
return null
}
- if (!tryStandalone && post.attributes?.standalone) {
+ if (!!tryStandalone !== !!post.attributes?.standalone) {
return null
}