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.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index 5de99e8e..0ecae16b 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -137,11 +137,13 @@ class Translator {
async buildTags(names, title) {
const results = [];
for (const name of names) {
- const meta = await this.database.findTag(name.split(':')[0], title);
+ const meta = await this.database.findTagForTitle(name.split(':')[0], title);
const result = {name};
for (const prop in meta || {}) {
- result[prop] = meta[prop];
+ if (prop !== 'name') {
+ result[prop] = meta[prop];
+ }
}
results.push(dictTagSanitize(result));