fixed initialization error when no map set exists in config
fixed discord link showing when no invite specified OpenGraph image set to absolute url more changes to killcallback and logging fixed some angle conversion stuff
This commit is contained in:
@ -23,7 +23,10 @@ namespace WebfrontCore.Controllers
|
||||
ViewBag.Authorized = Authorized;
|
||||
ViewBag.Url = Startup.Configuration["Web:Address"];
|
||||
string inviteLink = Manager.GetApplicationSettings().Configuration().DiscordInviteCode;
|
||||
ViewBag.DiscordLink = inviteLink != null && inviteLink.Contains("http") ? inviteLink : $"https://discordapp.com/invite/{inviteLink}";
|
||||
if (inviteLink != null)
|
||||
ViewBag.DiscordLink = inviteLink.Contains("https") ? inviteLink : $"https://discordapp.com/invite/{inviteLink}";
|
||||
else
|
||||
ViewBag.DiscorLink = "";
|
||||
base.OnActionExecuting(context);
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ namespace WebfrontCore.Controllers
|
||||
|
||||
public async Task<IActionResult> ListAsync(int offset = 0)
|
||||
{
|
||||
return View("_List", offset);
|
||||
return await Task.FromResult(View("_List", offset));
|
||||
}
|
||||
|
||||
public async Task<IActionResult> PublicAsync()
|
||||
|
Reference in New Issue
Block a user