diff --git a/app/assets/javascripts/discourse/models/user.js b/app/assets/javascripts/discourse/models/user.js index dbc1d218bef..bdb94e0c9ea 100644 --- a/app/assets/javascripts/discourse/models/user.js +++ b/app/assets/javascripts/discourse/models/user.js @@ -213,6 +213,10 @@ Discourse.User = Discourse.Model.extend({ data[s + '_category_ids'] = cats; }); + if (!Discourse.SiteSettings.edit_history_available_to_public) { + data['edit_history_public'] = this.get('edit_history_public'); + } + return Discourse.ajax("/users/" + this.get('username_lower'), { data: data, type: 'PUT'