diff --git a/app/assets/javascripts/discourse/app/models/post.js b/app/assets/javascripts/discourse/app/models/post.js index a003345556..25a8f40168 100644 --- a/app/assets/javascripts/discourse/app/models/post.js +++ b/app/assets/javascripts/discourse/app/models/post.js @@ -300,7 +300,9 @@ const Post = RestModel.extend({ }, rebake() { - return ajax(`/posts/${this.id}/rebake`, { type: "PUT" }); + return ajax(`/posts/${this.id}/rebake`, { type: "PUT" }).catch( + popupAjaxError + ); }, unhide() {