From 34bbd513506e1d5eed2b42d280393dbc87124a34 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Wed, 15 Jul 2020 18:52:59 -0400 Subject: [PATCH] FIX: regression in secure URL generation, followup to 36bad0c --- .../pretty-text/addon/engines/discourse-markdown-it.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js b/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js index 5e7ef24c2ac..3454994cecb 100644 --- a/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js +++ b/app/assets/javascripts/pretty-text/addon/engines/discourse-markdown-it.js @@ -339,6 +339,10 @@ export function setup(opts, siteSettings, state) { opts.discourse = copy; getOptions.f = () => opts.discourse; + opts.discourse.limitedSiteSettings = { + secureMedia: siteSettings.secure_media + }; + opts.engine = window.markdownit({ discourse: opts.discourse, html: true,