Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Mastodon
  3. Mastodon RSS : what is "contentSnippet"?

Mastodon RSS : what is "contentSnippet"?

Scheduled Pinned Locked Moved Mastodon
4 Posts 2 Posters 905 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • timconsidineT Offline
    timconsidineT Offline
    timconsidine
    App Dev
    wrote on last edited by timconsidine
    #1

    I have an RSS feed from mastodon
    The json included both content and contentSnippet.
    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 of content ? I guess this may be a question about the RSS feed rather than Mastodon, but checking here first.

    timconsidineT 1 Reply Last reply
    0
    • timconsidineT timconsidine

      I have an RSS feed from mastodon
      The json included both content and contentSnippet.
      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 of content ? I guess this may be a question about the RSS feed rather than Mastodon, but checking here first.

      timconsidineT Offline
      timconsidineT Offline
      timconsidine
      App Dev
      wrote on last edited by
      #2

      @timconsidine test of a 500 character toot suggests contentSnippet is just the non-html version of content.

      In case that helps anyone, and in anyone wants to dispute that!

      robiR 1 Reply Last reply
      3
      • timconsidineT timconsidine

        @timconsidine test of a 500 character toot suggests contentSnippet is just the non-html version of content.

        In case that helps anyone, and in anyone wants to dispute that!

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #3

        @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?

        Conscious tech

        timconsidineT 1 Reply Last reply
        1
        • robiR robi

          @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?

          timconsidineT Offline
          timconsidineT Offline
          timconsidine
          App Dev
          wrote on last edited by
          #4

          @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.

          1 Reply Last reply
          2
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search