From 3d507f49f6320152d846f5ae7da09a0390e3317d Mon Sep 17 00:00:00 2001 From: Nazar Leush Date: Tue, 9 Jul 2024 20:33:33 +0300 Subject: [PATCH] rename `isAllowedApp` to `isAllowed` --- plugins/links/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/links/utils.js b/plugins/links/utils.js index 9820cba90..631d67e29 100644 --- a/plugins/links/utils.js +++ b/plugins/links/utils.js @@ -90,12 +90,12 @@ export default { // Filter empty. rels = rels.filter(i => i); - var isAllowedApp = whitelistRecord.isAllowed('html-meta.iframely') // New check. + var isAllowed = whitelistRecord.isAllowed('html-meta.iframely') // New check. || whitelistRecord.isAllowed('iframely.app'); // Old check // If no additional rels specified, try add 'app'. if (!rels.some(rel => CONFIG.REL_GROUPS && CONFIG.REL_GROUPS.includes(rel))) { - if (isAllowedApp + if (isAllowed && /iframely/i.test(key) || (appname && key.indexOf(appname) === 0)) { // Allow -1; - if (!isAllowedApp && !isAllowedByRels) { + if (!isAllowed && !isAllowedByRels) { return []; }