From 1731d2b6ef0cc4f379269db436ea4a4ea2042e33 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 5 May 2023 23:33:01 +0800 Subject: [PATCH] :art: Brand new marketplace UI https://github.com/siyuan-note/siyuan/issues/8181 --- kernel/bazaar/package.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bazaar/package.go b/kernel/bazaar/package.go index 0f1bfc01d..e7cb4bf6f 100644 --- a/kernel/bazaar/package.go +++ b/kernel/bazaar/package.go @@ -431,10 +431,10 @@ func GetPackageREADME(repoURL, repoHash, packageType string) (ret string) { return } - fullRepoURLHash := "https://github.com/" + repoURLHash + url := strings.TrimPrefix(repoURLHash, "https://github.com/") var repo *StageRepo for _, r := range stageIndex.Repos { - if r.URL == fullRepoURLHash { + if r.URL == url { repo = r break }