mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 04:07:27 +00:00
REFACTOR: Remove _.uniq
and use ember version
This commit is contained in:
parent
66021abe41
commit
e3ec7b72d0
@ -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 [];
|
||||
}
|
||||
|
@ -864,7 +864,8 @@ const User = RestModel.extend({
|
||||
}
|
||||
});
|
||||
|
||||
return _.uniq(titles)
|
||||
return titles
|
||||
.uniq()
|
||||
.sort()
|
||||
.map(title => {
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user