FIX: save edit_history_public
This commit is contained in:
parent
aeb0ea1f25
commit
4e80a4d091
|
@ -213,6 +213,10 @@ Discourse.User = Discourse.Model.extend({
|
||||||
data[s + '_category_ids'] = cats;
|
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'), {
|
return Discourse.ajax("/users/" + this.get('username_lower'), {
|
||||||
data: data,
|
data: data,
|
||||||
type: 'PUT'
|
type: 'PUT'
|
||||||
|
|
Loading…
Reference in New Issue