jasonmayes / Twitter-Post-Fetcher

Fetch your twitter posts without using the new Twitter 1.1 API. Pure JavaScript! By Jason Mayes
http://www.jasonmayes.com/projects/twitterApi
Other
912 stars 233 forks source link

Newlines in tweets ignored #193

Closed jamieburchell closed 4 years ago

jamieburchell commented 6 years ago

Version: 18.0.2

Given a Tweet with example content:

This is my tweet text. Find out more below

http://www.example.com

The content of the Tweet from Twitter-Post-Fetcher becomes:

This is my tweet text. Find out more belowhttp://www.example.com

jasonmayes commented 5 years ago

Does the returned JSON have a new paragraph tag or such and Twitter fetcher is stripping this or is this just something Twitter is not sending in the JSON?

jamieburchell commented 5 years ago

Actually, it looks like there are no whitespace characters between the text and the link, so presumably Twitter is not sending this in the JSON ;(

JSON snippet from p.timeline-Tweet-text:

...retail products!<a href...

jasonmayes commented 4 years ago

Correct this is a Twitter thing. Closing as unfixable via here. You would need to target in CSS somehow to make the link on new line if you wanted it like that or in custom callback function you can inject a break yourself.