Fix tag name escaping on upload

This commit is contained in:
Fabricio Winter 2022-12-30 13:49:59 -03:00
parent 0d1fec51c5
commit da17f11e1a

View file

@ -320,7 +320,7 @@ class PostUploadView extends events.EventTarget {
uploadable.tags = []; uploadable.tags = [];
if (this._commonTagsInputNode) { if (this._commonTagsInputNode) {
var tags = this._commonTagsInputNode.value.split(' '); var tags = this._commonTagsInputNode.value.split(' ');
tags = tags.filter(t => t != ""); tags = tags.filter(t => t != "").map(t => t.replace('\\', ''));
uploadable.tags = uploadable.tags.concat(tags); uploadable.tags = uploadable.tags.concat(tags);
} }
uploadable.relations = []; uploadable.relations = [];