Skip to content

Comments

Improvements of Twitter spout#934

Merged
jtojnar merged 5 commits intomasterfrom
better-twitter
Jun 9, 2017
Merged

Improvements of Twitter spout#934
jtojnar merged 5 commits intomasterfrom
better-twitter

Conversation

@jtojnar
Copy link
Member

@jtojnar jtojnar commented Jun 1, 2017

No description provided.

@jtojnar jtojnar added this to the 2.18 milestone Jun 1, 2017
@jtojnar
Copy link
Member Author

jtojnar commented Jun 1, 2017

Fancybox does not work for some reason when the image URL does not end with an image extension 🤷‍

In 2016, Twitter made changes to the API which resulted in tweets
being truncated:

https://dev.twitter.com/overview/api/upcoming-changes-to-tweets

This patch changes the twitter spouts to use the extended mode,
allowing for full tweet bodies to be received.

Closes: #824
jtojnar added 4 commits June 8, 2017 20:09
Previously, we used regex for converting URLs to links, which lead
to weird errors like #933.

This patch uses the entities metadata provided by Twitter, thus the links
should correspond to those on Twitter site (including hashtags and mentions).
Additionally, the links now use correct href, instead of Twitter’s tracking
shortener.

https://dev.twitter.com/overview/api/entities-in-twitter-objects
@jtojnar
Copy link
Member Author

jtojnar commented Jun 8, 2017

Fancybox is now fixed, tests will be added later when testing framework is chosen.

@jtojnar jtojnar merged commit a4e596d into master Jun 9, 2017
@jtojnar jtojnar deleted the better-twitter branch June 9, 2017 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant