@@ -589,7 +589,7 @@ public TwitterTweet(JSONObject json) {
589
589
}
590
590
this .reply_count = MessageEntry .parseLong ((Number ) lazyGet (json , "reply_count" ));
591
591
this .retweet_count = MessageEntry .parseLong ((Number ) lazyGet (json , "retweet_count" ));
592
- this .favourite_count = MessageEntry .parseLong ((Number ) lazyGet (json , "favourite_count " ));
592
+ this .favourite_count = MessageEntry .parseLong ((Number ) lazyGet (json , "favourites_count " )); // inconsitency in naming, but twitter api defines so
593
593
this .images = MessageEntry .parseArrayList (lazyGet (json , "images" ));
594
594
this .audios = MessageEntry .parseArrayList (lazyGet (json , "audio" ));
595
595
this .videos = MessageEntry .parseArrayList (lazyGet (json , "videos" ));
@@ -856,7 +856,8 @@ public Post toJSON(final UserEntry user, final boolean calculatedData, final int
856
856
if (this .provider_hash != null && this .provider_hash .length () > 0 ) this .put ("provider_hash" , this .provider_hash );
857
857
this .put ("reply_count" , this .reply_count );
858
858
this .put ("retweet_count" , this .retweet_count );
859
- this .put ("favourite_count" , this .favourite_count );
859
+ // there is a slight inconsistency here in the plural naming but thats how it is noted in the twitter api
860
+ this .put ("favourites_count" , this .favourite_count );
860
861
this .put ("place_name" , this .place_name );
861
862
this .put ("place_id" , this .place_id );
862
863
0 commit comments