Skip to content

A platform for community discussion. Free, open, simple.

UX: lowercase tag name before checking it with topic title.

Vinoth Kannan62f4fc728da0
diff --git a/app/assets/javascripts/discourse/app/models/topic.js b/app/assets/javascripts/discourse/app/models/topic.js
index e3e6b01f620..c22cba93367 100644
--- a/app/assets/javascripts/discourse/app/models/topic.js
+++ b/app/assets/javascripts/discourse/app/models/topic.js
@@ -165,11 +165,11 @@ const Topic = RestModel.extend({
return tags;
}
- const title = this.title;
+ const title = this.title.toLowerCase();
const newTags = [];
tags.forEach(function(tag) {
- if (title.toLowerCase().indexOf(tag) === -1) {
+ if (title.indexOf(tag.toLowerCase()) === -1) {
newTags.push(tag);
}
});