Oembed for timelines breaks for lists containing dashes

bug
lists
oembed
embeddedtimeline

#1

The JSON response has all dashes replaced by spaces wherever the URL occurs which breaks widget generation.

For example the following oembed URL:
https://publish.twitter.com/oembed?url=https%3A%2F%2Ftwitter.com%2Fguardiannews%2Flists%2Fguardian-editorial-accounts

Returns:

{"url":"https:\/\/twitter.com\/guardiannews\/lists\/Guardian editorial accounts","title":"Guardian editorial accounts","html":"<a class=\"twitter-timeline\" href=\"https:\/\/twitter.com\/guardiannews\/lists\/Guardian editorial accounts\">A Twitter List by guardiannews<\/a>\n<script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>","width":null,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"https:\/\/twitter.com","version":"1.0"}

Note the href for the list has been changed to “https://twitter.com/guardiannews/lists/Guardian editorial accounts”, dashes replaced by spaces.

Widgets.js then reports:

Timeline for list for screen_name: guardiannews with slug: Guardian not found

as it’s not parsing the slug properly with the dashes missing.

Cheers.


#2

Thank you for the excellent bug report. We are close to fixing this.


#3

It was a bug on our side and it’s fixed now. Let us know if you see any more issues. Sorry about that.


#4

Working perfectly. Thanks for a really quick turn-around!


#5