Issue: wrong indices offsets in entities.urls for specific retweet

api

#1

Hello!

We’ve found some interesting issue with the following tweet: https://twitter.com/DasErste/status/664350420383481856

When this tweet is being re-teweeted and this retweet is fetched via the API, you will receive the following:

text: “RT @DasErste: “Deutschland verneigt sich – Danke, #HelmutSchmidt” – der @Tagesthemen-Kommentar von @NDR-Chefredakteur @ACichowicz: https://…”

But the offset for this URL has indices to 139 and 140 into the tweet

[urls] => Array
    (
     [0] => stdClass Object
      (
       [url] => https://t.co/Yf2jSrexAY
       [expanded_url] => http://mediathek.daserste.de/Tagesthemen/Deutschland-verneigt-sich-Danke-Helm/Das-Erste/Video?documentId=31577052&topRessort&bcastId=3914
       [display_url] => mediathek.daserste.de/Tagesthemen/De…
       [indices] => Array
        (
         [0] => 139
         [1] => 140
        )

      )

    )

The id of an example retweet is 664350487106486272 .

When substituting, this will lead to the errornous URL " … https://http://media…"


#2

When you get a retweet 664350487106486272 for example, the text field is sometimes truncated. Use the retweeted_status object instead, that will have the full text, for which urls array is correct.