From 8e9bc8d325c96be8abdc1103ea84562f93ba2ebf Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 25 Nov 2021 01:10:04 -0500 Subject: [PATCH] ImportEtherpad: Avoid false positives when checking apool --- src/node/utils/ImportEtherpad.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/node/utils/ImportEtherpad.js b/src/node/utils/ImportEtherpad.js index 224424a43..714e1deb8 100644 --- a/src/node/utils/ImportEtherpad.js +++ b/src/node/utils/ImportEtherpad.js @@ -54,8 +54,7 @@ exports.setPadRaw = async (padId, r) => { } value.padIDs = {[padId]: 1}; } else { - // is this an attribute we support or not? If not, tell the admin - if (value.pool) { + if (prefix === 'pad' && keyParts.length === 2 && value.pool) { for (const attrib of Object.keys(value.pool.numToAttrib)) { const attribName = value.pool.numToAttrib[attrib][0]; if (!supportedElems.has(attribName)) unsupportedElements.add(attribName);