mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 01:12:11 +08:00
FIX: Use avatar_dir to import user avatars
This commit is contained in:
parent
c9c3a83261
commit
09151190f9
@ -152,7 +152,7 @@ class ImportScripts::Lithium < ImportScripts::Base
|
|||||||
# import user avatar
|
# import user avatar
|
||||||
sso_id = u.custom_fields["sso_id"]
|
sso_id = u.custom_fields["sso_id"]
|
||||||
if sso_id.present?
|
if sso_id.present?
|
||||||
prefix = "#{UPLOAD_DIR}/#{sso_id}_"
|
prefix = "#{AVATAR_DIR}/#{sso_id}_"
|
||||||
file = get_file(prefix + "actual.jpeg")
|
file = get_file(prefix + "actual.jpeg")
|
||||||
file ||= get_file(prefix + "profile.jpeg")
|
file ||= get_file(prefix + "profile.jpeg")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user