Closed aaronpk closed 9 months ago
Interesting, thanks for filing! I'm not familiar with whatever XML namespace media:
is from, but I'll take a look.
Mastodon's root RSS element w/namespaces is:
<rss version="2.0" xmlns:webfeeds="http://webfeeds.org/rss/1.0" xmlns:media="http://search.yahoo.com/mrss/">
Also granary is overriding the actual content in <description>
with the image's alt text in <media:description type="plain">
😕.
Oh we don't parse any images out of RSS at all yet. 🤷
Done! New example JSON Feed output from https://mstdn.social/@ElleGray.rss :
{
"content_html": "<p>look we don't need to be competitive about our hummingbirds I'm just saying mine can joust</p>",
"date_published": "2024-02-04T18:12:26+00:00",
"id": "https://mstdn.social/@ElleGray/111874562251028805",
"image": "https://media.mstdn.social/media_attachments/files/111/874/561/315/706/387/original/4b5673cfb159a20f.jpg",
"url": "https://mstdn.social/@ElleGray/111874562251028805"
}
Mastodon RSS feed puts photos in a
<media:content url="">
tag, which doesn't appear to be recognized by granary.Example XML:
JSONFeed conversion from Granary: