Static update for htmlHelper method within bound-avatar helper

This commit is contained in:
Alexis Duran 2018-05-10 19:15:34 -04:00
parent cd5d3025d1
commit ba383027e8
No known key found for this signature in database
GPG Key ID: AC642A122C323A1B

View File

@ -1,6 +1,5 @@
import { htmlHelper } from 'discourse-common/lib/helpers';
import { avatarImg } from 'discourse/lib/utilities';
import { addExtraUserClasses } from 'discourse/helpers/user-avatar';
export default htmlHelper((user, size) => {
if (Ember.isEmpty(user)) {
@ -9,5 +8,4 @@ export default htmlHelper((user, size) => {
const avatarTemplate = Ember.get(user, 'avatar_template');
return avatarImg({ size, avatarTemplate });
return avatarImg(addExtraUserClasses(user, { size, avatarTemplate }));
});