FIX: regression in secure URL generation, followup to 36bad0c

This commit is contained in:
Penar Musaraj 2020-07-15 18:52:59 -04:00
parent 36bad0c31f
commit 34bbd51350
No known key found for this signature in database
GPG Key ID: E390435D881FF0F7

View File

@ -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,