クエリで見つけた別のツイートへの応答 ( reply )としてツイートを送信しようとしています。
しかし、私はhttps://docs.spring.io/spring-social-twitter/docs/current/apidocs/org/springframework/social/twitter/api/TweetData.html#inReplyToStatus(long)を呼び出して正しいものを渡しますがstatus Id、ツイートは元のツイートへの返信ではないようです。
私はorg.springframework.social:spring-social-twitter:jar:1.1.0.RELEASE
春のブートアプリで使用しており、最新のバージョンも試しました1.1.2.RELEASE
が、まだ機能しません。
関連コード:
// Tweet tweet comes from a query
// String statusText is some plain text
final Long inReplyToStatus = tweet.getId();
final TweetData tweetData = new TweetData(statusText);
// try to make it a reply, TODO: doesn't work
tweetData.inReplyToStatus(inReplyToStatus);
// send tweet, but doesn't look like an answer.
final Tweet newTweet = this.twitterTemplateFactory.timelineOperations().updateStatus(tweetData);
ここで何が悪いのですか?statusText
「@<usernameOfTheOriginalTweet> ...」で始まる昔ながらの返信にする必要がありますか?
助けていただければ幸いです。