From 4e80a4d0911d6c44581a62f167a126ceaf1882ad Mon Sep 17 00:00:00 2001 From: Ben Lubar Date: Wed, 30 Jul 2014 12:03:22 -0500 Subject: [PATCH] FIX: save edit_history_public --- app/assets/javascripts/discourse/models/user.js | 4 ++++ 1 file changed, 4 insertions(+) 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'