Fixed unmatched censored tags.

This commit is contained in:
DebaucheryLibrarian
2026-03-22 04:46:40 +01:00
parent ea289c2b49
commit ba2a5c2225
2 changed files with 34 additions and 9 deletions

View File

@@ -80,7 +80,7 @@ function withRelations(queryBuilder, withMedia) {
async function matchTags(rawTags) {
const tags = rawTags
.map((tag) => tag?.trim().match(/[a-z0-9()]+/ig)?.join(' ').toLowerCase())
.map((tag) => tag?.trim().match(/[a-z0-9()-]+/ig)?.join(' ').toLowerCase())
.filter(Boolean);
const tagEntries = await knex('tags')