From 5dfc037719ec04a4ac5f4df498885f988b05e31a Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Fri, 2 Oct 2020 19:19:05 -0400 Subject: [PATCH] Use flarum/utils/Stream instead of m.stream --- extensions/embed/js/src/forum/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/embed/js/src/forum/index.js b/extensions/embed/js/src/forum/index.js index fc1119228..9e448dc4d 100644 --- a/extensions/embed/js/src/forum/index.js +++ b/extensions/embed/js/src/forum/index.js @@ -2,6 +2,7 @@ import 'iframe-resizer/js/iframeResizer.contentWindow.js'; import { override, extend } from 'flarum/extend'; import app from 'flarum/app'; +import Stream from 'flarum/utils/Stream'; import ForumApplication from 'flarum/ForumApplication'; import Composer from 'flarum/components/Composer'; import PostStream from 'flarum/components/PostStream'; @@ -33,7 +34,7 @@ override(PostMeta.prototype, 'getPermalink', (original, post) => { return original(post).replace('/embed', '/d'); }); -app.pageInfo = m.stream({}); +app.pageInfo = Stream({}); const reposition = function() { const info = app.pageInfo();