A platform for community discussion. Free, open, simple.
DEV: Do not add `-theme` suffix to theme exports
David Taylorc0b1a1a914ba
diff --git a/lib/theme_store/tgz_exporter.rb b/lib/theme_store/tgz_exporter.rbindex 7487e82692a..3e1260e86e8 100644--- a/lib/theme_store/tgz_exporter.rb+++ b/lib/theme_store/tgz_exporter.rb@@ -5,7 +5,7 @@ class ThemeStore::TgzExporterdef initialize(theme)@theme = theme@temp_folder = "#{Pathname.new(Dir.tmpdir).realpath}/discourse_theme_#{SecureRandom.hex}"- @export_name = "#{@theme.name.downcase.gsub(/[^0-9a-z.\-]/, '-')}-theme"+ @export_name = @theme.name.downcase.gsub(/[^0-9a-z.\-]/, '-')@export_name = "discourse-#{@export_name}" unless @export_name.starts_with?("discourse")end