FIX: Pass in DecoratorHelper to PostCooked

This commit is contained in:
Mark VanLandingham 2019-11-05 15:58:09 -06:00
parent 797d450b73
commit ad787656fe
1 changed files with 5 additions and 4 deletions

View File

@ -9,6 +9,7 @@ import PostCooked from "discourse/widgets/post-cooked";
import { formatUsername } from "discourse/lib/utilities";
import { iconHTML } from "discourse-common/lib/icon-library";
import { iconNode } from "discourse-common/lib/icon-library";
import DecoratorHelper from "discourse/widgets/decorator-helper";
function clearAccepted(topic) {
const posts = topic.get("postStream.posts");
@ -161,10 +162,10 @@ function initializeWithApi(api) {
</div>
</aside>`;
const cooked = new PostCooked({
cooked: hasExcerpt ? withExcerpt : withoutExcerpt
});
const cooked = new PostCooked(
{ cooked: hasExcerpt ? withExcerpt : withoutExcerpt },
dec
);
return dec.rawHtml(cooked.init());
}
}