mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 17:27:16 +08:00
FIX: If a site has no logo, don't show a broken image in the digest.
This commit is contained in:
@ -28,6 +28,8 @@ module UserNotificationsHelper
|
||||
def logo_url
|
||||
logo_url = SiteSetting.digest_logo_url
|
||||
logo_url = SiteSetting.logo_url if logo_url.blank?
|
||||
|
||||
return nil if logo_url.blank?
|
||||
if logo_url !~ /http(s)?\:\/\//
|
||||
logo_url = "#{Discourse.base_url}#{logo_url}"
|
||||
end
|
||||
|
Reference in New Issue
Block a user