Comments (2)
Found the problem. Not with linkify(). As a RT that exceeds the 140 char limit it gets truncated. https://dev.twitter.com/docs/platform-objects/tweets
The truncated value should be set to true but for some odd reason it is false so I'm just ensuring that any retweet uses the 'retweeted_status' instead of 'text' since RTs should be the only time truncation would occur. If I need to limit chars on RTs I can do it in my own code.
foreach ($timeline as $tweet) {
if(isset($tweet->retweeted_status))
{
$tweet->text = $tweet->retweeted_status->text;
}
}
from twitter.
Thank you for pointing this problem.
I tried this too and I get some curious values.
Twitter say status not truncated and the link's indices are 139-140...
'truncated' => boolean false
'urls' =>
array (size=1)
0 =>
array (size=4)
'url' => string 'http://t.co/xq4QUBWT1V' (length=22)
'expanded_url' => string 'http://bit.ly/1hZyeLI' (length=21)
'display_url' => string 'bit.ly/1hZyeLI' (length=14)
'indices' =>
array (size=2)
0 => int 139
1 => int 140
from twitter.
Related Issues (20)
- Cant post thread
- twitter postTwitter method doesn't work in laravel 9 HOT 1
- Media not uploaded
- getTweet() params not work for ApiV1
- Not installable with Laravel 9.38.0 HOT 3
- How to get tweets with more than 1000 likes?
- will be used.
- Instructions for login via v2? HOT 7
- Unable to install the package with Laravel 9.x HOT 1
- Issue with composer require atymic/twitter "3.1.16"
- How can i use this API end point `POST /2/tweets`
- v2 api getListSubscriptions?
- Error: When authenticating requests to the Twitter API v2 endpoints, you must use keys and to (truncated...) HOT 4
- Laravel 10 php 8.1 HOT 1
- No publishable resources for tag [] HOT 4
- Non static method issue HOT 3
- Different Package HOT 1
- Twitter::forAPIV2 post tweet not work HOT 1
- Laravel 11 support
- Support for nesbot/carbon 3 ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitter.