Skip to content

Commit a543994

Browse files
committed
feat(rss): add blueskyPostId to RSS feed items
1 parent e29d09a commit a543994

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/pages/rss.xml.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,16 @@ export async function GET(context: APIContext) {
5050
};
5151
}
5252

53+
// Add custom data for bluesky post ID if present
54+
if (post.data.blueskyPostId) {
55+
item.customData = `<bluesky:postId>${post.data.blueskyPostId}</bluesky:postId>`;
56+
}
57+
5358
return item;
5459
}),
60+
xmlns: {
61+
bluesky: 'https://bsky.app/ns',
62+
},
5563
customData: `<language>en-us</language>`,
5664
});
5765
}

0 commit comments

Comments
 (0)