Fix corgidon support

This commit is contained in:
Thomas 2020-05-09 12:29:44 +02:00
parent 43d8f6e5ff
commit 6dab48af0c
1 changed files with 3 additions and 0 deletions

View File

@ -2205,6 +2205,9 @@ public class API {
JSONObject resobj = new JSONObject(response);
JSONObject jsonObject = resobj.getJSONObject("software");
String name = jsonObject.getString("name").toUpperCase();
if( name.compareTo("CORGIDON") == 0 ){
name = "MASTODON";
}
instanceNodeInfo.setName(name);
instanceNodeInfo.setVersion(jsonObject.getString("version"));
instanceNodeInfo.setOpenRegistrations(resobj.getBoolean("openRegistrations"));