mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 15:34:16 +08:00
Revert "Static update for htmlHelper method within bound-avatar helper"
This reverts commit ba383027e8
.
This commit is contained in:
parent
67054d524d
commit
a0fc5de5c4
|
@ -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 }));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user