I'm using Tweepy python library to access the Twitter API to retrieve cryptocurrency tweets. My application uses a Django backend and a ReactJs frontend. While my web-app will show the retrieved tweet itself, I intend to also have a clickable link available, to re-route to the original on Twitter.
My Django Rest Framework API is retrieving the correct Tweet ID number in full when returning a JSON. However, when I'm retrieving from the Rest Framework API to my Frontend, the last few digits of the Tweet ID number is changed to "0". I wonder if this is a default protection measure that Twitter uses?
Django Rest API:
…
"bitcoin_tweet_user": "TheStarPhoenix",
"bitcoin_tweet": "Teslas can now be bought for bitcoin, Elon Musk says […]",
"bitcoin_tweet_link": 1375092596339585038,
…
Front-End of Website:
App.js:
<div className="center-column-tweet">
<div className="item-row-tweets">
<div className="left">
<span>
<b>@{tasks.bitcoin_tweet_user}</b><br/><br/>
"{tasks.bitcoin_tweet}"<br/>
<b>Link:</b> https://twitter.com/twitter/statuses/{tasks.bitcoin_tweet_link}
</span>
</div>
</div>
</div>