REFACTOR: Remove _.uniq and use ember version

This commit is contained in:
Robin Ward
2020-08-31 16:45:53 -04:00
parent 66021abe41
commit e3ec7b72d0
2 changed files with 5 additions and 4 deletions

View File

@@ -70,9 +70,9 @@ export function linkSeenMentions($elem, siteSettings) {
.substr(1) .substr(1)
); );
updateFound($mentions, usernames); updateFound($mentions, usernames);
return _.uniq(usernames).filter( return usernames
u => !checked[u] && u.length >= siteSettings.min_username_length .uniq()
); .filter(u => !checked[u] && u.length >= siteSettings.min_username_length);
} }
return []; return [];
} }

View File

@@ -864,7 +864,8 @@ const User = RestModel.extend({
} }
}); });
return _.uniq(titles) return titles
.uniq()
.sort() .sort()
.map(title => { .map(title => {
return { return {