diff --git a/app/assets/javascripts/discourse/widgets/post-small-action.js.es6 b/app/assets/javascripts/discourse/widgets/post-small-action.js.es6 index 699e97dd0d5..3aaa48f0c35 100644 --- a/app/assets/javascripts/discourse/widgets/post-small-action.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-small-action.js.es6 @@ -3,6 +3,7 @@ import RawHtml from 'discourse/widgets/raw-html'; import { iconNode } from 'discourse/helpers/fa-icon'; import { h } from 'virtual-dom'; import { actionDescriptionHtml } from 'discourse/components/small-action'; +import { avatarFor } from 'discourse/widgets/post'; const icons = { 'closed.enabled': 'lock', @@ -44,6 +45,8 @@ export default createWidget('post-small-action', { })); } + contents.push(avatarFor.call(this, 'small', { template: attrs.avatar_template, username: attrs.avatar })); + const description = actionDescriptionHtml(attrs.actionCode, attrs.created_at, attrs.actionCodeWho); contents.push(new RawHtml({ html: `

${description}

` }));