Do not change login on user update.

This commit is contained in:
Martin Edenhofer 2016-01-10 08:50:18 +01:00
parent edb6c66b6b
commit a5ecee76c6

View file

@ -35,7 +35,6 @@ class TweetBase
# create or update user
user_data = {
login: tweet_user.screen_name,
image_source: tweet_user.profile_image_url.to_s,
}
if auth
@ -45,6 +44,7 @@ class TweetBase
end
user.update_attributes(user_data)
else
user_data[:login] = tweet_user.screen_name
user_data[:firstname] = tweet_user.name
user_data[:note] = tweet_user.description
user_data[:active] = true