From 04dade2f9b487fa7d6b6403dc54a55f9506de1e9 Mon Sep 17 00:00:00 2001 From: Hiroshi Fujita Date: Fri, 10 Jan 2025 16:46:10 +0900 Subject: [PATCH] fix: update fetchReleases to use owner and repo from meta (#12590) --- web/app/components/plugins/plugin-item/action.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/components/plugins/plugin-item/action.tsx b/web/app/components/plugins/plugin-item/action.tsx index 1bc34c9928..bc646609eb 100644 --- a/web/app/components/plugins/plugin-item/action.tsx +++ b/web/app/components/plugins/plugin-item/action.tsx @@ -54,7 +54,9 @@ const Action: FC = ({ const invalidateInstalledPluginList = useInvalidateInstalledPluginList() const handleFetchNewVersion = async () => { - const fetchedReleases = await fetchReleases(author, pluginName) + const owner = meta!.repo.split('/')[0] || author + const repo = meta!.repo.split('/')[1] || pluginName + const fetchedReleases = await fetchReleases(owner, repo) if (fetchedReleases.length === 0) return const { needUpdate, toastProps } = checkForUpdates(fetchedReleases, meta!.version) Toast.notify(toastProps)