From b44b2aef7efc6eda38686a8e90cf82a7e0ff7204 Mon Sep 17 00:00:00 2001 From: rr- Date: Thu, 27 Oct 2016 17:54:11 +0200 Subject: [PATCH] client/posts: fix mass tag case sensitivity Mass tagging with `TAG` marked posts tagged with `tag` as untagged. --- client/js/models/post.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/js/models/post.js b/client/js/models/post.js index 56a9450..8002a0c 100644 --- a/client/js/models/post.js +++ b/client/js/models/post.js @@ -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) {