mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
Rename nickname to username in the code. Use new hub routes. (Old routes still exist as aliases for old Discourse instances.)
This commit is contained in:
@ -166,7 +166,7 @@ class User < ActiveRecord::Base
|
||||
self.username = new_username
|
||||
|
||||
if current_username.downcase != new_username.downcase && valid?
|
||||
DiscourseHub.nickname_operation { DiscourseHub.change_nickname(current_username, new_username) }
|
||||
DiscourseHub.username_operation { DiscourseHub.change_username(current_username, new_username) }
|
||||
end
|
||||
|
||||
save
|
||||
|
Reference in New Issue
Block a user