New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support extended tweets #247

Merged
merged 5 commits into from Dec 24, 2016

Conversation

Projects
None yet
@takke
Contributor

takke commented Sep 18, 2016

To support extended tweets, add configuration of "tweet_mode=extended" and some fixes.


日本語はこちら↓

@samruston

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.

@matthewbogner

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.

@frangarcia

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.

@matthewbogner

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.

@frangarcia

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.

@frangarcia

frangarcia Sep 21, 2016

I don't think you need to add the Override annotation

return getTarget().getDisplayTextRangeStart();
}

@Override

This comment has been minimized.

@frangarcia

frangarcia Sep 21, 2016

I don't think you need to add the Override annotation

@@ -48,6 +48,10 @@
*/
String getText();

int getDisplayTextRangeStart();

This comment has been minimized.

@frangarcia

frangarcia Sep 21, 2016

I would also add the javadoc part for those 2 methods

@nonylene nonylene referenced this pull request Sep 27, 2016

Closed

twitter-extended #59

Move video_info to MediaEntity from ExtendedMediaEntity
 (for extended_tweet.entities.media and entities on DMs)
@takke

This comment has been minimized.

Contributor

takke commented Sep 28, 2016

MediaEntityをExtendedMediaEntity相当にする修正を行いました。

GIF動画や動画を含む140文字超ツイートをStreamingで取得した場合に、extended_tweet.entities.media に載る動画情報を取得できるようにするためです。

DMのGIF動画や動画についても同様で、#234 は不要になるのでクローズしました。

詳細は Twitter4JのExtendedMediaEntity廃止について - Qiita にまとめてあります。

@YousefED

This comment has been minimized.

Contributor

YousefED commented Sep 28, 2016

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.

@takke takke referenced this pull request Sep 30, 2016

Merged

Remove ExtendedMediaEntity #250

@takke takke referenced this pull request Oct 19, 2016

Closed

fix IMPLICIT_PARAMS_STR #1

@paulpach

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.

@tjallingt

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...
Any ETA for when this will be merged?

@mrkumarawanish

This comment has been minimized.

mrkumarawanish commented Nov 15, 2016

When we can expect to have tweet_mode feature in twitter 4j library?

@vickyst

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?

@lmserrano

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 yusuke merged commit d25b340 into Twitter4J:master Dec 24, 2016

1 check failed

continuous-integration/travis-ci/pr The Travis CI build failed
Details
@yusuke

This comment has been minimized.

Collaborator

yusuke commented Jan 6, 2017

@paulpach

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

@frangarcia

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

@frangarcia

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.

@MattWilliams89

This comment has been minimized.

MattWilliams89 commented Feb 15, 2017

Thanks for merging this, working well on 4.0.6 for me

takke pushed a commit to takke/Twitter4J that referenced this pull request Jul 23, 2018

@takke takke deleted the takke:support_extended_tweets branch Oct 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment