mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: CDN wasn't properly applied to category background images when using S3
This commit is contained in:
@@ -132,12 +132,8 @@ COMMENT
|
||||
@theme == :nil ? nil : @theme
|
||||
end
|
||||
|
||||
def apply_cdn(url)
|
||||
"#{GlobalSetting.cdn_url}#{url}"
|
||||
end
|
||||
|
||||
def category_css(category)
|
||||
"body.category-#{category.full_slug} { background-image: url(#{apply_cdn(category.uploaded_background.url)}) }\n"
|
||||
"body.category-#{category.full_slug} { background-image: url(#{upload_cdn_path(category.uploaded_background.url)}) }\n"
|
||||
end
|
||||
|
||||
def imports(asset, parent_path)
|
||||
|
Reference in New Issue
Block a user