diff options
| author | rr- | 2016-10-27 17:54:11 +0200 |
|---|---|---|
| committer | rr- | 2016-10-27 17:54:11 +0200 |
| commit | b44b2aef7efc6eda38686a8e90cf82a7e0ff7204 (patch) | |
| tree | 9692787a30bfdbf807471a5463cab925b1b289b4 /client/js/models | |
| parent | 39973386c6a0d59a18fddf836282d4cc5d834670 (diff) | |
client/posts: fix mass tag case sensitivity
Mass tagging with `TAG` marked posts tagged with `tag` as untagged.
Diffstat (limited to 'client/js/models')
| -rw-r--r-- | client/js/models/post.js | 4 |
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) { |