Do not change login on user update.
This commit is contained in:
parent
edb6c66b6b
commit
a5ecee76c6
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,6 @@ class TweetBase
|
||||||
|
|
||||||
# create or update user
|
# create or update user
|
||||||
user_data = {
|
user_data = {
|
||||||
login: tweet_user.screen_name,
|
|
||||||
image_source: tweet_user.profile_image_url.to_s,
|
image_source: tweet_user.profile_image_url.to_s,
|
||||||
}
|
}
|
||||||
if auth
|
if auth
|
||||||
|
@ -45,6 +44,7 @@ class TweetBase
|
||||||
end
|
end
|
||||||
user.update_attributes(user_data)
|
user.update_attributes(user_data)
|
||||||
else
|
else
|
||||||
|
user_data[:login] = tweet_user.screen_name
|
||||||
user_data[:firstname] = tweet_user.name
|
user_data[:firstname] = tweet_user.name
|
||||||
user_data[:note] = tweet_user.description
|
user_data[:note] = tweet_user.description
|
||||||
user_data[:active] = true
|
user_data[:active] = true
|
||||||
|
|
Loading…
Reference in a new issue