Merge pull request #5813 from duranmla/ad/bound-avatar-typo
Static update for htmlHelper method within bound-avatar helper
This commit is contained in:
commit
1e4abc63d0
|
@ -1,6 +1,5 @@
|
||||||
import { htmlHelper } from 'discourse-common/lib/helpers';
|
import { htmlHelper } from 'discourse-common/lib/helpers';
|
||||||
import { avatarImg } from 'discourse/lib/utilities';
|
import { avatarImg } from 'discourse/lib/utilities';
|
||||||
import { addExtraUserClasses } from 'discourse/helpers/user-avatar';
|
|
||||||
|
|
||||||
export default htmlHelper((user, size) => {
|
export default htmlHelper((user, size) => {
|
||||||
if (Ember.isEmpty(user)) {
|
if (Ember.isEmpty(user)) {
|
||||||
|
@ -9,5 +8,4 @@ export default htmlHelper((user, size) => {
|
||||||
|
|
||||||
const avatarTemplate = Ember.get(user, 'avatar_template');
|
const avatarTemplate = Ember.get(user, 'avatar_template');
|
||||||
return avatarImg({ size, avatarTemplate });
|
return avatarImg({ size, avatarTemplate });
|
||||||
return avatarImg(addExtraUserClasses(user, { size, avatarTemplate }));
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue