Merge pull request #5813 from duranmla/ad/bound-avatar-typo

Static update for htmlHelper method within bound-avatar helper
This commit is contained in:
Guo Xiang Tan 2018-05-11 12:59:00 +08:00 committed by GitHub
commit 1e4abc63d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

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 }));
});