Merge pull request #2609 from BenLubar/benlubar-edit-history-public-2
FIX: save edit_history_public
This commit is contained in:
commit
87ca49e26e
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue