From 42af7ee315b39e858809b144cee57a976f1b87c9 Mon Sep 17 00:00:00 2001 From: Bazsalanszky Date: Thu, 18 Jul 2024 10:46:36 +0200 Subject: [PATCH] Fix user icons for the instance info page The avatars were parsed incorrectly. --- app/src/main/java/eu/toldi/infinityforlemmy/site/SiteInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/toldi/infinityforlemmy/site/SiteInfo.java b/app/src/main/java/eu/toldi/infinityforlemmy/site/SiteInfo.java index 2ab732bc..aeceaf30 100644 --- a/app/src/main/java/eu/toldi/infinityforlemmy/site/SiteInfo.java +++ b/app/src/main/java/eu/toldi/infinityforlemmy/site/SiteInfo.java @@ -107,7 +107,7 @@ public class SiteInfo { for (int i = 0; i < adminsJson.length(); i++) { JSONObject adminJson = adminsJson.getJSONObject(i).getJSONObject("person"); admins.add(new BasicUserInfo(adminJson.getInt("id"), adminJson.getString("name"), - LemmyUtils.actorID2FullName(adminJson.getString("actor_id")), adminJson.optString("avatar ", ""), + LemmyUtils.actorID2FullName(adminJson.getString("actor_id")), adminJson.optString("avatar", ""), adminJson.optString("display_name", adminJson.getString("name"))) ); }