Fix corgidon support
This commit is contained in:
parent
43d8f6e5ff
commit
6dab48af0c
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue