mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:50:26 -06:00
FIX: Use correct setting for DiscourseConnect card background overrides
This commit is contained in:
parent
50b3d7708e
commit
422fa1b1d8
@ -342,7 +342,7 @@ class DiscourseSingleSignOn < SingleSignOn
|
||||
|
||||
if card_background_url.present?
|
||||
card_background_missing = user.user_profile.card_background_upload.blank? || Upload.get_from_url(user.user_profile.card_background_upload.url).blank?
|
||||
if card_background_missing || SiteSetting.discourse_connect_overrides_profile_background
|
||||
if card_background_missing || SiteSetting.discourse_connect_overrides_card_background
|
||||
card_background_changed = sso_record.external_card_background_url != card_background_url
|
||||
if card_background_changed || card_background_missing
|
||||
Jobs.enqueue(:download_profile_background_from_url,
|
||||
|
Loading…
Reference in New Issue
Block a user