mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 12:42:57 +08:00
Static update for htmlHelper method within bound-avatar helper
This commit is contained in:
parent
cd5d3025d1
commit
ba383027e8
|
@ -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 }));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user