FIX: displays user-card when clicking on avatar of post small action (#6941)

FIX: displays user-card when clicking on avatar of post small action (#6941)

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 b1caf06..92cd072 100644
--- a/app/assets/javascripts/discourse/widgets/post-small-action.js.es6
+++ b/app/assets/javascripts/discourse/widgets/post-small-action.js.es6
@@ -102,7 +102,7 @@ export default createWidget("post-small-action", {
     contents.push(
       avatarFor.call(this, "small", {
         template: attrs.avatar_template,
-        username: attrs.avatar,
+        username: attrs.username,
         url: attrs.usernameUrl
       })
     );

GitHub sha: 1f8ff85f

2 Likes

Is that the only place where it was broken?

Yes I had a quick look, I think it’s fine, in core at least.

1 Like