mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Added location.present? test to user profile updating.
This commit is contained in:
parent
9b9bd9c0a1
commit
6030fe1f9d
@ -299,7 +299,7 @@ class ImportScripts::Base
|
|||||||
begin
|
begin
|
||||||
User.transaction do
|
User.transaction do
|
||||||
u.save!
|
u.save!
|
||||||
if bio_raw.present? || website.present?
|
if bio_raw.present? || website.present? || location.present?
|
||||||
u.user_profile.bio_raw = bio_raw if bio_raw.present?
|
u.user_profile.bio_raw = bio_raw if bio_raw.present?
|
||||||
u.user_profile.website = website if website.present?
|
u.user_profile.website = website if website.present?
|
||||||
u.user_profile.location = location if location.present?
|
u.user_profile.location = location if location.present?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user