diff --git a/src/common/net/net.cpp b/src/common/net/net.cpp index 84c62176f2..1d836cbd1d 100644 --- a/src/common/net/net.cpp +++ b/src/common/net/net.cpp @@ -133,7 +133,7 @@ std::optional Release::FromJson(const nlohmann::json& json, const std:: rel.host = host; const auto release_base = - fmt::format("{}/{}/releases", host, repo); + fmt::format("{}/{}/releases", Common::g_build_auto_update_website, repo); const auto fallback_html = fmt::format("{}/tag/{}", release_base, rel.tag); rel.html_url = json.value("html_url", fallback_html); diff --git a/src/core/hle/service/bcat/news/builtin_news.cpp b/src/core/hle/service/bcat/news/builtin_news.cpp index bd7ff0d221..e45a78b8fe 100644 --- a/src/core/hle/service/bcat/news/builtin_news.cpp +++ b/src/core/hle/service/bcat/news/builtin_news.cpp @@ -467,14 +467,18 @@ void EnsureBuiltinNewsLoaded() { ImportReleases(releases); LOG_INFO(Service_BCAT, "news: {} entries loaded from cache", NewsStorage::Instance().ListAll().size()); - } else if (const auto fresh = Common::Net::GetReleasesBody()) { - const std::string_view body = fresh.value(); - WriteCachedJson(body); - const auto releases = Common::Net::Release::ListFromJson(body, Common::g_build_auto_update_stable_api, Common::g_build_auto_update_stable_repo); - ImportReleases(releases); - - LOG_INFO(Service_BCAT, "news: {} entries updated from Forgejo", NewsStorage::Instance().ListAll().size()); } + + std::thread([] { + if (const auto fresh = Common::Net::GetReleasesBody()) { + const std::string_view body = fresh.value(); + WriteCachedJson(body); + const auto releases = Common::Net::Release::ListFromJson(body, Common::g_build_auto_update_stable_api, Common::g_build_auto_update_stable_repo); + ImportReleases(releases); + + LOG_INFO(Service_BCAT, "news: {} entries updated from Forgejo", NewsStorage::Instance().ListAll().size()); + } + }); }); }