From 68db4057dc43fc2a9a75ae32db23b377c9224ba4 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 9 Feb 2016 14:04:56 -0500 Subject: [PATCH] FIX: Small actions weren't showing the avatar of who did it --- .../javascripts/discourse/widgets/post-small-action.js.es6 | 3 +++ 1 file changed, 3 insertions(+) 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}

` }));