Skip to content

A platform for community discussion. Free, open, simple.

FIX: Server side rendering was broken with new `helperContext()`

Robin Ward2523a21fc382
diff --git a/app/assets/javascripts/discourse/app/templates/discovery.hbs b/app/assets/javascripts/discourse/app/templates/discovery.hbs
index b8c7f4dc36b..33c6190c78e 100644
--- a/app/assets/javascripts/discourse/app/templates/discovery.hbs
+++ b/app/assets/javascripts/discourse/app/templates/discovery.hbs
@@ -36,4 +36,4 @@
</div>
{{plugin-outlet name="discovery-below"}}
-{{/if}}
\ No newline at end of file
+{{/if}}
diff --git a/lib/pretty_text/shims.js b/lib/pretty_text/shims.js
index 8e84568ed4d..4a01e947043 100644
--- a/lib/pretty_text/shims.js
+++ b/lib/pretty_text/shims.js
@@ -16,6 +16,13 @@ define("I18n", ["exports"], function(exports) {
exports.default = I18n;
});
+// Formatting doesn't currently need any helper context
+define("discourse-common/lib/helpers", ["exports"], function(exports) {
+ exports.helperContext = function() {
+ return {};
+ };
+});
+
__utils = require("discourse/lib/utilities");
__emojiUnicodeReplacer = null;