aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index edbf10cc..6be80581 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -162,7 +162,7 @@ class Translator {
let tagItems = [];
for (const tag of entry.tags) {
const tagItem = this.tags[tag];
- if (tagItem) {
+ if (tagItem && entry.addons.indexOf(tag) === -1) {
tagItems.push({
class: tagItem.class || 'default',
order: tagItem.order || Number.MAX_SAFE_INTEGER,
@@ -170,6 +170,11 @@ class Translator {
name: tag
});
}
+
+ //
+ // TODO: Handle tagging as popular through data.
+ //
+
if (tag === 'P') {
popular = true;
}
@@ -195,7 +200,6 @@ class Translator {
return 0;
});
-
if (matched) {
groups[entry.id] = {
expression: entry.expression,