Fix issue in user self-update
This commit is contained in:
		
							parent
							
								
									2f3f117b39
								
							
						
					
					
						commit
						13e5c47301
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -305,9 +305,9 @@ module Ebooks | |||
|     end | ||||
| 
 | ||||
|     # Updates @user and calls on_user_update. | ||||
|     def update_myself(new_me = twitter.user) | ||||
|     def update_myself(new_me=twitter.user) | ||||
|       @user = new_me if @user.nil? || new_me.id == @user.id | ||||
|       @username = user.screen_name | ||||
|       @username = @user.screen_name | ||||
|       log 'User information updated' | ||||
|       fire(:user_update) | ||||
|     end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jaiden Mispy
						Jaiden Mispy