mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Use avatar_dir to import user avatars
This commit is contained in:
parent
c9c3a83261
commit
09151190f9
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ class ImportScripts::Lithium < ImportScripts::Base
|
|||
# import user avatar
|
||||
sso_id = u.custom_fields["sso_id"]
|
||||
if sso_id.present?
|
||||
prefix = "#{UPLOAD_DIR}/#{sso_id}_"
|
||||
prefix = "#{AVATAR_DIR}/#{sso_id}_"
|
||||
file = get_file(prefix + "actual.jpeg")
|
||||
file ||= get_file(prefix + "profile.jpeg")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue