diff --git a/app/assets/javascripts/discourse/widgets/post.js.es6 b/app/assets/javascripts/discourse/widgets/post.js.es6 index 016a2c4030e..a50a39e965f 100644 --- a/app/assets/javascripts/discourse/widgets/post.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post.js.es6 @@ -82,7 +82,8 @@ createWidget('post-avatar', { tagName: 'div.topic-avatar', settings: { - size: 'large' + size: 'large', + displayPosterName: false }, html(attrs) { @@ -106,6 +107,10 @@ createWidget('post-avatar', { result.push(h('div.poster-avatar-extra')); + if (this.settings.displayPosterName) { + result.push(this.attach('poster-name', attrs)); + } + return result; } }); @@ -141,8 +146,16 @@ function showReplyTab(attrs, siteSettings) { createWidget('post-meta-data', { tagName: 'div.topic-meta-data', + + settings: { + displayPosterName: true + }, + html(attrs) { - const result = [this.attach('poster-name', attrs)]; + let result = []; + if (this.settings.displayPosterName) { + result.push(this.attach('poster-name', attrs)); + } if (attrs.isWhisper) { result.push(h('div.post-info.whisper', {