YouTube link posted fails to render properly in timeline #38

Closed
opened 2018-01-15 19:39:04 +00:00 by thrrgilag · 6 comments
thrrgilag commented 2018-01-15 19:39:04 +00:00 (Migrated from gitlab.com)

created by: thrrgilag

Post https://posts.pnut.io/263327 doesn't render the link properly.

{
  "meta":{
    "code":200
  },
  "data":{
    "created_at":"2018-01-15T19:29:59Z",
    "id":"263327",
    "source":{
      "id":"pJ2VRJzLBwBitL6ZJoiXOLeamCxRs8Bw",
      "link":"https:\/\/beta.unsweets.net\/",
      "name":"Beta"
    },
    "user":{
      "type":"human",
      "username":"lechindianer",
      "created_at":"2016-09-12T15:08:45Z",
      "name":"Pascal",
      "html":"<span itemscope itemtype=\"https:\/\/pnut.io\/schemas\/Post\"><span data-tag-name=\"Writing\" itemprop=\"tag\">#Writing<\/span>, <span data-tag-name=\"GameDev\" itemprop=\"tag\">#GameDev<\/span>, <span data-tag-name=\"Elixir\" itemprop=\"tag\">#Elixir<\/span>, <span data-tag-name=\"OpenBSD\" itemprop=\"tag\">#OpenBSD<\/span>, <span data-tag-name=\"FreeBSD\" itemprop=\"tag\">#FreeBSD<\/span><br><br>Stay positive! \ud83d\ude80<\/span>",
      "timezone":"Europe\/Berlin",
      "locale":"en_US",
      "id":"29",
      "content":{
        "html":"<span itemscope=\"https:\/\/pnut.io\/schemas\/Post\"><span data-tag-name=\"Writing\" itemprop=\"tag\">#Writing<\/span>, <span data-tag-name=\"GameDev\" itemprop=\"tag\">#GameDev<\/span>, <span data-tag-name=\"Elixir\" itemprop=\"tag\">#Elixir<\/span>, <span data-tag-name=\"OpenBSD\" itemprop=\"tag\">#OpenBSD<\/span>, <span data-tag-name=\"FreeBSD\" itemprop=\"tag\">#FreeBSD<\/span><br><br>Stay positive! \ud83d\ude80<\/span>",
        "text":"#Writing, #GameDev, #Elixir, #OpenBSD, #FreeBSD\n\nStay positive! \ud83d\ude80",
        "entities":{
          "links":[
            
          ],
          "mentions":[
            
          ],
          "tags":[
            {
              "len":8,
              "pos":39,
              "text":"FreeBSD"
            },
            {
              "len":8,
              "pos":29,
              "text":"OpenBSD"
            },
            {
              "len":7,
              "pos":20,
              "text":"Elixir"
            },
            {
              "len":8,
              "pos":10,
              "text":"GameDev"
            },
            {
              "len":8,
              "pos":0,
              "text":"Writing"
            }
          ]
        },
        "avatar_image":{
          "height":184,
          "width":184,
          "link":"https:\/\/d26y28lt6cxszo.cloudfront.net\/avatar\/NzwoWdflxbGdu2IhiCDyHZUEl6774bkP2Hy7NvaM7q1FsicQMi-J3glMz4fLeVpYdDohHD",
          "is_default":false
        },
        "cover_image":{
          "link":"https:\/\/d26y28lt6cxszo.cloudfront.net\/cover\/bzTsP7BtwliKGnBjaOwk5xBQhqSBBfP10wJMwIEl209l1RhftlOF706n_hHQXXV-ufR3JHycjS9iayHvx2oZNTd9lmTyEaPz6n74siV2wGsXDZsJVao_UROjmN8hgpGWst3dbA6RTApr",
          "height":186,
          "width":1500,
          "is_default":false
        }
      },
      "counts":{
        "bookmarks":21,
        "clients":0,
        "followers":53,
        "following":32,
        "posts":1864,
        "users":3
      },
      "verified":{
        "domain":"www.lechindianer.de",
        "link":"https:\/\/www.lechindianer.de"
      },
      "follows_you":true,
      "you_blocked":false,
      "you_follow":true,
      "you_muted":false,
      "you_can_follow":true,
      "raw":[
        
      ]
    },
    "thread_id":"263327",
    "counts":{
      "bookmarks":0,
      "reposts":0,
      "replies":0,
      "threads":0
    },
    "content":{
      "html":"<span itemscope itemtype=\"https:\/\/pnut.io\/schemas\/Post\"><a href=\"https:\/\/www.youtube.com\/watch?v=d-84UJpYFRM\">See What Happens When You Tickle a Rat<\/a> [youtube.com]<br><br>&lt;3 rats<\/span>",
      "text":"See What Happens When You Tickle a Rat [youtube.com]\n\n<3 rats",
      "entities":{
        "links":[
          {
            "link":"https:\/\/www.youtube.com\/watch?v=d-84UJpYFRM",
            "len":38,
            "pos":0,
            "text":"See What Happens When You Tickle a Rat [youtube.com]",
            "amended_len":52,
            "description":"By studying how rats react to tickling, scientists are gaining insight into how a brain processes and responds to the sensation. Video courtesy Humboldt Univ...",
            "title":"See What Happens When You Tickle a Rat | National Geographic"
          }
        ],
        "mentions":[
          
        ],
        "tags":[
          
        ]
      }
    },
    "raw":[
      
    ],
    "you_bookmarked":false,
    "you_reposted":false
  }
}
<em>created by: thrrgilag</em> Post https://posts.pnut.io/263327 doesn't render the link properly. ``` { "meta":{ "code":200 }, "data":{ "created_at":"2018-01-15T19:29:59Z", "id":"263327", "source":{ "id":"pJ2VRJzLBwBitL6ZJoiXOLeamCxRs8Bw", "link":"https:\/\/beta.unsweets.net\/", "name":"Beta" }, "user":{ "type":"human", "username":"lechindianer", "created_at":"2016-09-12T15:08:45Z", "name":"Pascal", "html":"<span itemscope itemtype=\"https:\/\/pnut.io\/schemas\/Post\"><span data-tag-name=\"Writing\" itemprop=\"tag\">#Writing<\/span>, <span data-tag-name=\"GameDev\" itemprop=\"tag\">#GameDev<\/span>, <span data-tag-name=\"Elixir\" itemprop=\"tag\">#Elixir<\/span>, <span data-tag-name=\"OpenBSD\" itemprop=\"tag\">#OpenBSD<\/span>, <span data-tag-name=\"FreeBSD\" itemprop=\"tag\">#FreeBSD<\/span><br><br>Stay positive! \ud83d\ude80<\/span>", "timezone":"Europe\/Berlin", "locale":"en_US", "id":"29", "content":{ "html":"<span itemscope=\"https:\/\/pnut.io\/schemas\/Post\"><span data-tag-name=\"Writing\" itemprop=\"tag\">#Writing<\/span>, <span data-tag-name=\"GameDev\" itemprop=\"tag\">#GameDev<\/span>, <span data-tag-name=\"Elixir\" itemprop=\"tag\">#Elixir<\/span>, <span data-tag-name=\"OpenBSD\" itemprop=\"tag\">#OpenBSD<\/span>, <span data-tag-name=\"FreeBSD\" itemprop=\"tag\">#FreeBSD<\/span><br><br>Stay positive! \ud83d\ude80<\/span>", "text":"#Writing, #GameDev, #Elixir, #OpenBSD, #FreeBSD\n\nStay positive! \ud83d\ude80", "entities":{ "links":[ ], "mentions":[ ], "tags":[ { "len":8, "pos":39, "text":"FreeBSD" }, { "len":8, "pos":29, "text":"OpenBSD" }, { "len":7, "pos":20, "text":"Elixir" }, { "len":8, "pos":10, "text":"GameDev" }, { "len":8, "pos":0, "text":"Writing" } ] }, "avatar_image":{ "height":184, "width":184, "link":"https:\/\/d26y28lt6cxszo.cloudfront.net\/avatar\/NzwoWdflxbGdu2IhiCDyHZUEl6774bkP2Hy7NvaM7q1FsicQMi-J3glMz4fLeVpYdDohHD", "is_default":false }, "cover_image":{ "link":"https:\/\/d26y28lt6cxszo.cloudfront.net\/cover\/bzTsP7BtwliKGnBjaOwk5xBQhqSBBfP10wJMwIEl209l1RhftlOF706n_hHQXXV-ufR3JHycjS9iayHvx2oZNTd9lmTyEaPz6n74siV2wGsXDZsJVao_UROjmN8hgpGWst3dbA6RTApr", "height":186, "width":1500, "is_default":false } }, "counts":{ "bookmarks":21, "clients":0, "followers":53, "following":32, "posts":1864, "users":3 }, "verified":{ "domain":"www.lechindianer.de", "link":"https:\/\/www.lechindianer.de" }, "follows_you":true, "you_blocked":false, "you_follow":true, "you_muted":false, "you_can_follow":true, "raw":[ ] }, "thread_id":"263327", "counts":{ "bookmarks":0, "reposts":0, "replies":0, "threads":0 }, "content":{ "html":"<span itemscope itemtype=\"https:\/\/pnut.io\/schemas\/Post\"><a href=\"https:\/\/www.youtube.com\/watch?v=d-84UJpYFRM\">See What Happens When You Tickle a Rat<\/a> [youtube.com]<br><br>&lt;3 rats<\/span>", "text":"See What Happens When You Tickle a Rat [youtube.com]\n\n<3 rats", "entities":{ "links":[ { "link":"https:\/\/www.youtube.com\/watch?v=d-84UJpYFRM", "len":38, "pos":0, "text":"See What Happens When You Tickle a Rat [youtube.com]", "amended_len":52, "description":"By studying how rats react to tickling, scientists are gaining insight into how a brain processes and responds to the sensation. Video courtesy Humboldt Univ...", "title":"See What Happens When You Tickle a Rat | National Geographic" } ], "mentions":[ ], "tags":[ ] } }, "raw":[ ], "you_bookmarked":false, "you_reposted":false } } ```
thrrgilag commented 2018-01-16 14:13:07 +00:00 (Migrated from gitlab.com)
<em>created by: thrrgilag</em> More examples * https://beta.unsweets.net/@cirrus/posts/263900 * https://beta.unsweets.net/@logout/posts/263887 * https://beta.unsweets.net/@ludolphus/posts/263747 * https://beta.unsweets.net/@hb75/posts/266658 *By Morgan McMillian on 2018-07-03T04:17:00 (imported from GitLab project)*
thrrgilag commented 2018-02-28 05:18:55 +00:00 (Migrated from gitlab.com)

created by: thrrgilag

parse text around links because blackberry #38

By Morgan McMillian on 2018-07-03T04:17:01 (imported from GitLab project)

<em>created by: thrrgilag</em> <a href="/thrrgilag/goober-bb10/commit/57f6d128c519a8a4eedf20f871564989371bd991">parse text around links because blackberry #38</a> *By Morgan McMillian on 2018-07-03T04:17:01 (imported from GitLab project)*
thrrgilag commented 2018-02-28 05:18:55 +00:00 (Migrated from gitlab.com)

created by: thrrgilag

Fix links that have already been parsed and oh deal with those brackets #38

By Morgan McMillian on 2018-07-03T04:17:03 (imported from GitLab project)

<em>created by: thrrgilag</em> <a href="/thrrgilag/goober-bb10/commit/91ab0585f66faf492cda9922fc9a0bf31084d4cc">Fix links that have already been parsed and oh deal with those brackets #38</a> *By Morgan McMillian on 2018-07-03T04:17:03 (imported from GitLab project)*
thrrgilag commented 2018-02-28 05:20:10 +00:00 (Migrated from gitlab.com)

created by: thrrgilag

By Morgan McMillian on 2018-07-03T04:17:03 (imported from GitLab project)

<em>created by: thrrgilag</em> *By Morgan McMillian on 2018-07-03T04:17:03 (imported from GitLab project)*
thrrgilag commented 2018-07-03 04:17:04 +00:00 (Migrated from gitlab.com)

closed

By Morgan McMillian on 2018-07-03T04:17:04 (imported from GitLab project)

closed *By Morgan McMillian on 2018-07-03T04:17:04 (imported from GitLab project)*
thrrgilag commented 2018-07-03 04:17:06 +00:00 (Migrated from gitlab.com)

unlocked this issue

By Morgan McMillian on 2018-07-03T04:17:06 (imported from GitLab project)

unlocked this issue *By Morgan McMillian on 2018-07-03T04:17:06 (imported from GitLab project)*
This repo is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: spacenerdmo/goober-bb10#38
No description provided.