Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Thomas
Fedilab
Commits
6dab48af
Commit
6dab48af
authored
May 09, 2020
by
Thomas
Browse files
Fix corgidon support
parent
43d8f6e5
Pipeline
#299253
passed with stage
in 6 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/app/fedilab/android/client/API.java
View file @
6dab48af
...
...
@@ -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"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment