mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: output css for category backgrounds only if uploads have a url
This commit is contained in:
parent
2c284874b4
commit
c12a53449c
@ -61,7 +61,7 @@ module Stylesheet
|
||||
register_import "category_backgrounds" do
|
||||
contents = ""
|
||||
Category.where('uploaded_background_id IS NOT NULL').each do |c|
|
||||
contents << category_css(c) if c.uploaded_background
|
||||
contents << category_css(c) if c.uploaded_background&.url.present?
|
||||
end
|
||||
|
||||
Import.new("categoy_background.scss", source: contents)
|
||||
|
Loading…
Reference in New Issue
Block a user