mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
REFACTOR: Remove _.uniq and use ember version
This commit is contained in:
@@ -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 [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -864,7 +864,8 @@ const User = RestModel.extend({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return _.uniq(titles)
|
return titles
|
||||||
|
.uniq()
|
||||||
.sort()
|
.sort()
|
||||||
.map(title => {
|
.map(title => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user