Check ID before updating user
This commit is contained in:
parent
19f670ed42
commit
770739d922
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ module Ebooks
|
|||
|
||||
# Updates @user and calls on_user_update.
|
||||
def update_myself(new_me = twitter.user)
|
||||
@user = new_me
|
||||
@user = new_me if @user.nil? || new_me.id == @user.id
|
||||
@username = user.name
|
||||
fire(:user_update)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue