introduce tag exclusion

This commit is contained in:
lightling 2025-04-19 17:22:43 -04:00
parent 9d919bfb0a
commit 246d352761
Signed by: lightling
GPG key ID: F1F29650D537C773
6 changed files with 31 additions and 3 deletions

View file

@ -122,6 +122,12 @@ const mapStrapiResponseToMackenzii = async (inVal) => {
// handle list basic fields
outVal.title = data.title;
if (!!data.excludeTags) {
outVal.excludeTags = data.excludeTags.split(/,| |;/).filter(val => val !== '');
}
if (!!data.excludeTagCategories) {
outVal.excludeTagCategories = data.excludeTagCategories.split(/,| |;/).filter(val => val !== '');
}
// handle list entries
outVal.entries = {};