mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-05-02 07:09:29 -05:00
Did a dumb and didn't actually make web guild convert settings secure
This commit is contained in:
@@ -176,6 +176,11 @@ public class WebGuild {
|
||||
data.put("name", name);
|
||||
if (iconUrl != null)
|
||||
data.put("icon_url", iconUrl);
|
||||
if (secure)
|
||||
data.put("settings", settings.toJsonSecure());
|
||||
else
|
||||
data.put("settings", settings.toJson());
|
||||
|
||||
data.put("settings", settings.toJson());
|
||||
if (botNick != null && !botNick.equals(""))
|
||||
data.put("bot_nick", botNick);
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ public class GetWebGuildEndpoint {
|
||||
|
||||
response.setContentType("application/json");
|
||||
response.setStatus(200);
|
||||
return wg.toJson(authState.isFromDiscalNetwork()).toString();
|
||||
return wg.toJson(!authState.isFromDiscalNetwork()).toString();
|
||||
}
|
||||
response.setContentType("application/json");
|
||||
response.setStatus(404);
|
||||
|
||||
Reference in New Issue
Block a user