summaryrefslogtreecommitdiff
path: root/src/pages/micro/rss.xml.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/micro/rss.xml.ts')
-rw-r--r--src/pages/micro/rss.xml.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pages/micro/rss.xml.ts b/src/pages/micro/rss.xml.ts
index 37d7d39..9356341 100644
--- a/src/pages/micro/rss.xml.ts
+++ b/src/pages/micro/rss.xml.ts
@@ -4,8 +4,10 @@ import type { APIContext } from "astro";
import { siteConfig } from "@/site.config";
export const GET = async (context: APIContext) => {
- // Get only Pleroma posts
- const allMicro = await getCollection("micro").catch(() => []); // Fallback to empty array if micro collection fails
+ // Get only Pleroma posts tagged with "micro"
+ const allMicro = await getCollection("micro", ({ data }) => data.tags?.includes("micro")).catch(
+ () => [],
+ ); // Fallback to empty array if micro collection fails
// Sort all micro posts
const allMicroPosts = allMicro.sort(