Mastodon RSS : what is "contentSnippet"?
-
I have an RSS feed from mastodon
The json included bothcontent
andcontentSnippet
.
I can't find documentation about how they differ.Guessing the contentSnippet is the 1st xx chars of content.
But what is xx ?Or is
contentSnippet
the full but non-html version ofcontent
? I guess this may be a question about the RSS feed rather than Mastodon, but checking here first. -
@timconsidine test of a 500 character toot suggests
contentSnippet
is just the non-html version ofcontent
.In case that helps anyone, and in anyone wants to dispute that!
-
@timconsidine you already did what I'd have suggested, testing and seeing what was given.
What happens if it's just an image or video with no text?
-
@robi hmmm, that's a good question.
I was under the impression that some text is mandatory.
But having tried it, Mastodon certainly allows it.
And the RSS feed looks like this :{ "title": "xxxxxxx: “”", "link": "https://xxxxxxxxxxxx", "pubDate": "Sun, 26 Sep 2021 19:56:22 +0000", "enclosure": { "url": "https://xxxxxxxxx.png", "length": "14690", "type": "image/png" }, "content": "", "contentSnippet": "", "guid": "https://xxxxxxx", "isoDate": "2021-09-26T19:56:22.000Z" },
So it works.
Although my n8n workflow to crosspost to Twitter would likely break, but I will try that later when I'm feeling braver.