mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 00:33:31 +08:00
DEV: Update to lastest rubocop-discourse
This commit is contained in:

committed by
Loïc Guitaut

parent
3b6d4c830f
commit
2a28cda15c
@ -161,8 +161,8 @@ class Auth::ManagedAuthenticator < Auth::Authenticator
|
||||
|
||||
if bio || location
|
||||
profile = user.user_profile
|
||||
profile.bio_raw = bio unless profile.bio_raw.present?
|
||||
profile.location = location unless profile.location.present?
|
||||
profile.bio_raw = bio if profile.bio_raw.blank?
|
||||
profile.location = location if profile.location.blank?
|
||||
profile.save
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user