You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.getRebloggedFromId() and .getRebloggedFromName() methods do not return any usable data.
I needed to use them to be able to separate native and reblogged posts, but each and every time (even when Tumblr post is 100% reblogged) these little things return null as an answer. Which is not really surprising since reblogged_from_id and reblogged_from_name fields are empty.
I have checked Tumblr's JSON responses - and they do contain proper reblog info, so the problem seems to be somewhere in jumblr library.
The text was updated successfully, but these errors were encountered:
I see a difference when I use the client.blogPosts("name", options) method.
You have to set the request parameter for reblog_info to true:
Map options = new HashMap<>();
// options.put("id",<your ID here if you want to have a single result>);
options.put("reblog_info",Boolean.TRUE);
List<Post> posts = client.blogPosts("blogname", options);
var id = posts.get(0).getRebloggedFromId();
// this works :-)
Note that the difference is client.blogPost vs client.blogPosts an only the last takes options fo reblog_info.
.getRebloggedFromId()
and.getRebloggedFromName()
methods do not return any usable data.I needed to use them to be able to separate native and reblogged posts, but each and every time (even when Tumblr post is 100% reblogged) these little things return
null
as an answer. Which is not really surprising sincereblogged_from_id
andreblogged_from_name
fields are empty.I have checked Tumblr's JSON responses - and they do contain proper reblog info, so the problem seems to be somewhere in jumblr library.
The text was updated successfully, but these errors were encountered: