Mastodon RSS : what is "contentSnippet"?
-
I have an RSS feed from mastodon
The json included bothcontentandcontentSnippet.
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
contentSnippetthe full but non-html version ofcontent? I guess this may be a question about the RSS feed rather than Mastodon, but checking here first. -
I have an RSS feed from mastodon
The json included bothcontentandcontentSnippet.
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
contentSnippetthe 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
contentSnippetis just the non-html version ofcontent.In case that helps anyone, and in anyone wants to dispute that!
-
@timconsidine test of a 500 character toot suggests
contentSnippetis 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?
-
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login