mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 16:53:43 +08:00
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;
|
||||
});
|
||||
|
||||
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
Block a user