From 0d0ca4f07036a3e68552ef50fe57795c70ad1724 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 28 Jan 2019 11:55:58 +0000 Subject: [PATCH] DEV: Automatically remove placeholder 'URL' metadata values from themes --- app/models/theme.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/theme.rb b/app/models/theme.rb index 0abbbc7cc99..fe4375c4bdf 100644 --- a/app/models/theme.rb +++ b/app/models/theme.rb @@ -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|