From 26b194d6dc93cc4f9dfc2eaa8d677e47363c0b22 Mon Sep 17 00:00:00 2001 From: Filip Date: Sat, 12 Oct 2024 22:24:38 +0200 Subject: [PATCH] fix 404 from webui version check (#1185) --- Shoko.Server/API/v3/Controllers/WebUIController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shoko.Server/API/v3/Controllers/WebUIController.cs b/Shoko.Server/API/v3/Controllers/WebUIController.cs index 4b9118042..ba846c6a4 100644 --- a/Shoko.Server/API/v3/Controllers/WebUIController.cs +++ b/Shoko.Server/API/v3/Controllers/WebUIController.cs @@ -516,7 +516,7 @@ public ActionResult LatestWebUIVersion([FromQuery] ReleaseChan var latestRelease = WebUIHelper.DownloadApiResponse("releases/latest"); string tagName = latestRelease.tag_name; var version = tagName[0] == 'v' ? tagName[1..] : tagName; - var tag = WebUIHelper.DownloadApiResponse($"git/ref/tags/{version}"); + var tag = WebUIHelper.DownloadApiResponse($"git/ref/tags/{tagName}"); string commit = tag["object"].sha; DateTime releaseDate = latestRelease.published_at; releaseDate = releaseDate.ToUniversalTime();