mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 09:17:30 +08:00
FIX: correct route for updating user title
This commit is contained in:
parent
1debf98d61
commit
a1f0375f1c
|
@ -62,7 +62,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
|||
saveTitle() {
|
||||
const self = this;
|
||||
|
||||
return ajax("/users/" + this.get('model.username').toLowerCase(), {
|
||||
return ajax(`/users/${this.get('model.username').toLowerCase()}.json`, {
|
||||
data: {title: this.get('userTitleValue')},
|
||||
type: 'PUT'
|
||||
}).catch(function(e) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user