From: Chocobozzz Date: Mon, 12 Apr 2021 08:10:48 +0000 (+0200) Subject: Ensure to install supported plugins X-Git-Tag: v3.2.0-rc.1~201 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=8280d0c22797c72978f698dc2deaa8ef569a9d15;p=github%2FChocobozzz%2FPeerTube.git Ensure to install supported plugins --- diff --git a/server/controllers/api/plugins.ts b/server/controllers/api/plugins.ts index bb69f25a1..a186de010 100644 --- a/server/controllers/api/plugins.ts +++ b/server/controllers/api/plugins.ts @@ -151,7 +151,7 @@ async function updatePlugin (req: express.Request, res: express.Response) { const fromDisk = !!body.path const toUpdate = body.npmName || body.path try { - const plugin = await PluginManager.Instance.update(toUpdate, undefined, fromDisk) + const plugin = await PluginManager.Instance.update(toUpdate, fromDisk) return res.json(plugin.toFormattedJSON()) } catch (err) { diff --git a/server/lib/plugins/plugin-index.ts b/server/lib/plugins/plugin-index.ts index 624f5da1d..165bc91b3 100644 --- a/server/lib/plugins/plugin-index.ts +++ b/server/lib/plugins/plugin-index.ts @@ -67,7 +67,19 @@ async function getLatestPluginsVersion (npmNames: string[]): Promise