From 422fa1b1d864c9664c6400f327b139d2e628f30c Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 16 Jul 2021 15:16:30 +0100 Subject: [PATCH] FIX: Use correct setting for DiscourseConnect card background overrides --- app/models/discourse_single_sign_on.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/discourse_single_sign_on.rb b/app/models/discourse_single_sign_on.rb index 4abfc61a4a9..7be3b50537e 100644 --- a/app/models/discourse_single_sign_on.rb +++ b/app/models/discourse_single_sign_on.rb @@ -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,