Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport extended tweets #247
Conversation
takke
added some commits
Sep 17, 2016
This comment has been minimized.
This comment has been minimized.
samruston
commented
Sep 19, 2016
|
Any updates on this PR? |
| @@ -77,6 +77,9 @@ | |||
| if (conf.isIncludeExtAltTextEnabled()) { | |||
| params.add(new HttpParameter("include_ext_alt_text", "true")); | |||
| } | |||
| if (conf.isTweetModeExtended()) { | |||
| params.add(new HttpParameter("tweet_mode", "extended")); | |||
This comment has been minimized.
This comment has been minimized.
matthewbogner
Sep 20, 2016
I think an enum would be useful here to illustrate the allowed values of tweet_mode ("compat" and "extended")
This comment has been minimized.
This comment has been minimized.
frangarcia
Sep 21, 2016
I need you need to change the size of the params variable:
List params = new ArrayList(4);
| @@ -73,6 +73,7 @@ | |||
| private boolean includeEntitiesEnabled = true; | |||
| private boolean trimUserEnabled = false; | |||
| private boolean includeExtAltTextEnabled = true; | |||
| private boolean tweetModeExtended = false; | |||
This comment has been minimized.
This comment has been minimized.
matthewbogner
Sep 20, 2016
•
I would favor this being a String or Enum value to accommodate any future usage of this tweet_mode parameter by Twitter with new values.
This comment has been minimized.
This comment has been minimized.
frangarcia
commented
Sep 20, 2016
|
It would be nice to have this pull request merged when possible as Twitter has already started to roll out some changes to support more than 140 chars when using other entities like hashtags or urls https://dev.twitter.com/overview/api/upcoming-changes-to-tweets |
| @@ -81,6 +81,15 @@ public String getText() { | |||
| return getTarget().getText(); | |||
| } | |||
|
|
|||
| @Override | |||
This comment has been minimized.
This comment has been minimized.
| return getTarget().getDisplayTextRangeStart(); | ||
| } | ||
|
|
||
| @Override |
This comment has been minimized.
This comment has been minimized.
| @@ -48,6 +48,10 @@ | |||
| */ | |||
| String getText(); | |||
|
|
|||
| int getDisplayTextRangeStart(); | |||
This comment has been minimized.
This comment has been minimized.
takke
referenced this pull request
Sep 28, 2016
Closed
support "video_info" for direct messages #234
This comment has been minimized.
This comment has been minimized.
|
MediaEntityをExtendedMediaEntity相当にする修正を行いました。 GIF動画や動画を含む140文字超ツイートをStreamingで取得した場合に、 DMのGIF動画や動画についても同様で、#234 は不要になるのでクローズしました。 詳細は Twitter4JのExtendedMediaEntity廃止について - Qiita にまとめてあります。 |
This comment has been minimized.
This comment has been minimized.
|
What's needed before supporting / merging this? I can help if necessary, Twitter already switched to extended tweets, so we'd need this ourselves sooner than later. |
This comment has been minimized.
This comment has been minimized.
paulpach
commented
Nov 10, 2016
|
What else is needed to merge this? it sucks having to maintain our own builds. |
This comment has been minimized.
This comment has been minimized.
tjallingt
commented
Nov 14, 2016
|
Hey, Just checking in on this pull request to mention how important it is to merge this soon as Twitter already heavily relies on extended_tweet's... |
This comment has been minimized.
This comment has been minimized.
mrkumarawanish
commented
Nov 15, 2016
•
|
When we can expect to have tweet_mode feature in twitter 4j library? |
This comment has been minimized.
This comment has been minimized.
vickyst
commented
Nov 25, 2016
|
Just wanted to add my voice to the requests for this - is there an ETA for this? |
This comment has been minimized.
This comment has been minimized.
lmserrano
commented
Dec 9, 2016
|
Also looking forward to have this soon. Any ETA yet? Is there any help needed? |
yusuke
merged commit d25b340
into
Twitter4J:master
Dec 24, 2016
1 check failed
This comment has been minimized.
This comment has been minimized.
|
Hi,
The pull request has been merged. And the latest build is available on the central repository as version 4.4.5.
Best regards,
Yusuke
… On Dec 9, 2016, at 21:43, Luis Miguel Serrano ***@***.***> wrote:
Also looking forward to have this soon. Any ETA yet? Is there any help needed?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This comment has been minimized.
This comment has been minimized.
paulpach
commented
Jan 6, 2017
|
there is no 4.4.5 version in maven central. The latest version is 4.0.6 |
This comment has been minimized.
This comment has been minimized.
frangarcia
commented
Jan 6, 2017
|
I think @yusuke got confused with the version and he meant 4.0.5 https://mvnrepository.com/artifact/org.twitter4j/twitter4j-core/4.0.5 |
This comment has been minimized.
This comment has been minimized.
frangarcia
commented
Jan 11, 2017
•
|
@yusuke can you please confirm which version of twitter4j has this pull request merged in? I was just checking 4.0.5 and it does not seem to have this pull request. If 4.0.5 does not have this pull request, is 4.0.6 a final/stable version? 4.0.6 definitely has this pull request merged in. |
This comment has been minimized.
This comment has been minimized.
MattWilliams89
commented
Feb 15, 2017
|
Thanks for merging this, working well on 4.0.6 for me |
takke commentedSep 18, 2016
To support extended tweets, add configuration of "tweet_mode=extended" and some fixes.
日本語はこちら↓