mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-28 11:58:23 +01:00
Fix JSON parsing error when parsing user data.
This commit is contained in:
parent
360051a302
commit
ae98fd8a08
@ -41,7 +41,7 @@ public class ParseUserData {
|
||||
long cakeday = userDataJson.getLong(JSONUtils.CREATED_UTC_KEY) * 1000;
|
||||
boolean isGold = userDataJson.getBoolean(JSONUtils.IS_GOLD_KEY);
|
||||
boolean isFriend = userDataJson.getBoolean(JSONUtils.IS_FRIEND_KEY);
|
||||
String description = userDataJson.getString(JSONUtils.PUBLIC_DESCRIPTION_KEY);
|
||||
String description = userDataJson.getJSONObject(JSONUtils.SUBREDDIT_KEY).getString(JSONUtils.PUBLIC_DESCRIPTION_KEY);
|
||||
|
||||
return new UserData(userName, iconImageUrl, bannerImageUrl, linkKarma, commentKarma, cakeday,
|
||||
isGold, isFriend, canBeFollowed, description);
|
||||
|
Loading…
Reference in New Issue
Block a user