DEV: Automatically remove placeholder 'URL' metadata values from themes

This commit is contained in:
David Taylor 2019-01-28 11:55:58 +00:00
parent 77d26b9df6
commit 0d0ca4f070
1 changed files with 1 additions and 0 deletions

View File

@ -437,6 +437,7 @@ class Theme < ActiveRecord::Base
RemoteTheme::METADATA_PROPERTIES.each do |property|
meta[property] = remote_theme&.public_send(property)
meta[property] = nil if meta[property] == "URL" # Clean up old discourse_theme CLI placeholders
end
meta[:assets] = {}.tap do |hash|