aboutsummaryrefslogtreecommitdiff
path: root/client/js
diff options
context:
space:
mode:
authorrr-2016-10-27 17:54:11 +0200
committerrr-2016-10-27 17:54:11 +0200
commitb44b2aef7efc6eda38686a8e90cf82a7e0ff7204 (patch)
tree9692787a30bfdbf807471a5463cab925b1b289b4 /client/js
parent39973386c6a0d59a18fddf836282d4cc5d834670 (diff)
client/posts: fix mass tag case sensitivity
Mass tagging with `TAG` marked posts tagged with `tag` as untagged.
Diffstat (limited to 'client/js')
-rw-r--r--client/js/models/post.js4
1 files changed, 3 insertions, 1 deletions
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) {

© 2015 - 2026 Jakob L. Kreuze