client/posts: fix mass tag case sensitivity

Mass tagging with `TAG` marked posts tagged with `tag` as untagged.
This commit is contained in:
rr- 2016-10-27 17:54:11 +02:00
parent 39973386c6
commit b44b2aef7e

View file

@ -79,7 +79,9 @@ class Post extends events.EventTarget {
}
isTaggedWith(tagName) {
return this._tags.map(s => s.toLowerCase()).includes(tagName);
return this._tags
.map(s => s.toLowerCase())
.includes(tagName.toLowerCase());
}
addTag(tagName, addImplications) {