Skip to content

Commit

Permalink
fix 404 from webui version check (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrails authored Oct 12, 2024
1 parent 2186e45 commit 26b194d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shoko.Server/API/v3/Controllers/WebUIController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ public ActionResult<ComponentVersion> 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();
Expand Down

0 comments on commit 26b194d

Please sign in to comment.