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.ts11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/pages/micro/rss.xml.ts b/src/pages/micro/rss.xml.ts
index 0827ccb..ce25129 100644
--- a/src/pages/micro/rss.xml.ts
+++ b/src/pages/micro/rss.xml.ts
@@ -3,14 +3,11 @@ import rss from "@astrojs/rss";
import { siteConfig } from "@/site.config";
export const GET = async () => {
- // Get both local notes and Pleroma posts
- const [allNotes, allMicro] = await Promise.all([
- getCollection("note"),
- getCollection("micro").catch(() => []), // Fallback to empty array if micro collection fails
- ]);
+ // Get only Pleroma posts
+ const allMicro = await getCollection("micro").catch(() => []); // Fallback to empty array if micro collection fails
- // Combine and sort all micro posts
- const allMicroPosts = [...allNotes, ...allMicro].sort(
+ // Sort all micro posts
+ const allMicroPosts = allMicro.sort(
(a, b) => b.data.publishDate.getTime() - a.data.publishDate.getTime(),
);