Revert "Static update for htmlHelper method within bound-avatar helper"

This reverts commit ba383027e8.
This commit is contained in:
Guo Xiang Tan 2018-05-11 13:17:51 +08:00
parent 67054d524d
commit a0fc5de5c4

View File

@ -1,5 +1,6 @@
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)) {
@ -8,4 +9,5 @@ export default htmlHelper((user, size) => {
const avatarTemplate = Ember.get(user, 'avatar_template');
return avatarImg({ size, avatarTemplate });
return avatarImg(addExtraUserClasses(user, { size, avatarTemplate }));
});