diff --git a/app/assets/javascripts/discourse/app/widgets/post-menu.js b/app/assets/javascripts/discourse/app/widgets/post-menu.js index 3798d71cb27..00520eb6622 100644 --- a/app/assets/javascripts/discourse/app/widgets/post-menu.js +++ b/app/assets/javascripts/discourse/app/widgets/post-menu.js @@ -552,8 +552,17 @@ export default createWidget("post-menu", { postControls.push(repliesButton); } - let extraControls = applyDecorators(this, "extra-controls", attrs, state); - postControls.push(h("div.actions", visibleButtons.concat(extraControls))); + const extraControls = applyDecorators(this, "extra-controls", attrs, state); + const beforeExtraControls = applyDecorators( + this, + "before-extra-controls", + attrs, + state + ); + + const controlsButtons = [...beforeExtraControls, ...visibleButtons, ...extraControls]; + + postControls.push(h("div.actions", controlsButtons)); if (state.adminVisible) { postControls.push(this.attach("post-admin-menu", attrs)); }