1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-12-16 03:08:47 +00:00

RSS feed includes all gallery images

This commit is contained in:
Cadence Fish
2020-01-27 04:15:53 +13:00
parent 5303ae1d4b
commit 1f253981b2
3 changed files with 21 additions and 10 deletions

View File

@@ -5,11 +5,12 @@ const {render} = require("pinski/plugins")
module.exports = [
{route: `/u/(${constants.external.username_regex})/rss.xml`, methods: ["GET"], code: async ({url, fill}) => {
const user = await fetchUser(fill[0])
const content = user.timeline.getFeed().xml()
const content = await user.timeline.fetchFeed()
const xml = content.xml()
return {
statusCode: 200,
contentType: "application/rss+xml", // see https://stackoverflow.com/questions/595616/what-is-the-correct-mime-type-to-use-for-an-rss-feed
content
content: xml
}
}}
]