REFACTOR: Remove `_.uniq` and use ember version

REFACTOR: Remove _.uniq and use ember version

diff --git a/app/assets/javascripts/discourse/app/lib/link-mentions.js b/app/assets/javascripts/discourse/app/lib/link-mentions.js
index 700412a..a0773cb 100644
--- a/app/assets/javascripts/discourse/app/lib/link-mentions.js
+++ b/app/assets/javascripts/discourse/app/lib/link-mentions.js
@@ -70,9 +70,9 @@ export function linkSeenMentions($elem, siteSettings) {
         .substr(1)
     );
     updateFound($mentions, usernames);
-    return _.uniq(usernames).filter(
-      u => !checked[u] && u.length >= siteSettings.min_username_length
-    );
+    return usernames
+      .uniq()
+      .filter(u => !checked[u] && u.length >= siteSettings.min_username_length);
   }
   return [];
 }
diff --git a/app/assets/javascripts/discourse/app/models/user.js b/app/assets/javascripts/discourse/app/models/user.js
index 15b7315..44ad80f 100644
--- a/app/assets/javascripts/discourse/app/models/user.js
+++ b/app/assets/javascripts/discourse/app/models/user.js
@@ -864,7 +864,8 @@ const User = RestModel.extend({
       }
     });
 
-    return _.uniq(titles)
+    return titles
+      .uniq()
       .sort()
       .map(title => {
         return {

GitHub sha: e3ec7b72

This commit appears in #10566 which was merged by eviltrout.