From 3112e3fd34a0390029afbd5edce5eb333415daa1 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sat, 1 May 2021 17:26:01 +0200 Subject: [PATCH] Handle base parts inherites in embed function --- source/app/metrics/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app/metrics/index.mjs b/source/app/metrics/index.mjs index 1d20df22..d41a41d8 100644 --- a/source/app/metrics/index.mjs +++ b/source/app/metrics/index.mjs @@ -102,7 +102,7 @@ export default async function metrics({login, q}, {graphql, rest, plugins, conf, throw new Error("An error occured during embed rendering, dying") return "
⚠️ Failed to execute embed function: invalid arguments
" } - q = {..._q, ...Object.fromEntries(Object.keys(Plugins).map(key => [key, false])), template:"classic", ...q} + q = {..._q, ...Object.fromEntries(Object.keys(Plugins).map(key => [key, false])), ...(q.base === true ? {} : Object.fromEntries(conf.settings.plugins.base.parts.map(part => [`base.${part}`, false]))), template:"classic", ...q} //Translate action syntax to web syntax let parts = [] if (q.base === true)