mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: correct route for updating user title
This commit is contained in:
@@ -62,7 +62,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
|||||||
saveTitle() {
|
saveTitle() {
|
||||||
const self = this;
|
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')},
|
data: {title: this.get('userTitleValue')},
|
||||||
type: 'PUT'
|
type: 'PUT'
|
||||||
}).catch(function(e) {
|
}).catch(function(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user