From e7272adbd5e55277be03c4df7d142732bb25b67e Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 1 Jan 2023 20:28:01 +0100 Subject: [PATCH] Fixed the tags configuration in the link controller --- server/controller/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controller/link.js b/server/controller/link.js index 14f831f..40fc652 100644 --- a/server/controller/link.js +++ b/server/controller/link.js @@ -19,7 +19,7 @@ module.exports.listLinks = async (domainName, configuration) => { } if (configuration.tags) - configuration.tags = configuration.tags.split(","); + configuration.tags = {[Op.regexp]: configuration.tags.split(",").map(tag => `(^|,)${tag}(,|$)`).join("|")}; if (configuration.title) configuration.title = {[Op.like]: "%" + configuration.title + "%"};