forked from DebaucheryLibrarian/traxxx
Expanded tag database.
This commit is contained in:
@@ -9,7 +9,7 @@ async function matchTags(rawTags) {
|
||||
.orWhereIn('tags.tag', rawTags.map(tag => tag.toLowerCase()))
|
||||
.leftJoin('tags as original', 'tags.alias_for', 'original.tag');
|
||||
|
||||
return tagEntries.map(({ tag }) => tag);
|
||||
return Array.from(new Set(tagEntries.map(({ tag }) => tag))).sort(); // reduce to tag name and filter duplicates
|
||||
}
|
||||
|
||||
module.exports = { matchTags };
|
||||
|
||||
Reference in New Issue
Block a user