Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Knossos.NET/Models/Nebula.cs
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ private enum ApiMethod
if (jsonReply != null)
{
var reply = JsonSerializer.Deserialize<ApiReply>(jsonReply);
if (!reply.result)
if (!reply.result && resourceUrl != "mod/check_id")
Log.Add(Log.LogSeverity.Error, "Nebula.ApiCall(" + resourceUrl + ")", "An error has ocurred during nebula api POST call: " + response.StatusCode + "(" + (int)response.StatusCode + ")\n" + data);

return reply;
Expand Down Expand Up @@ -1164,7 +1164,7 @@ public static async Task<bool> IsModEditable(string id)
if(editableIds != null)
return editableIds;

var reply = await ApiCall("mod/editable", null, true, 30, ApiMethod.GET);
var reply = await ApiCall("mod/editable", null, true, 45, ApiMethod.GET);
if (reply.HasValue)
{
if (reply.Value.mods != null && reply.Value.mods.Any())
Expand Down Expand Up @@ -1202,7 +1202,7 @@ public static async Task<bool> IsModEditable(string id)
if (tryUseCache && privateMods != null)
return privateMods;

var reply = await ApiCall("mod/list_private", null, true, 30, ApiMethod.GET);
var reply = await ApiCall("mod/list_private", null, true, 45, ApiMethod.GET);
if (reply.Value.mods != null && reply.Value.mods.Any())
{
var mods = reply.Value.mods.Select(x => x.Deserialize<Mod>()!).ToArray()!;
Expand Down