Skip to content

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

FIX: Run post-adopt decorators correctly in glimmer post-stream (#33440)

David Taylor9166076c66af
diff --git a/app/assets/javascripts/discourse/app/components/post/cooked-html.gjs b/app/assets/javascripts/discourse/app/components/post/cooked-html.gjs
index 2ffbea0696a..372dd125740 100644
--- a/app/assets/javascripts/discourse/app/components/post/cooked-html.gjs
+++ b/app/assets/javascripts/discourse/app/components/post/cooked-html.gjs
@@ -134,7 +134,7 @@ export default class PostCookedHtml extends Component {
@bind
decorateAfterAdopt(element, helper) {
- if (this.isStreamElement) {
+ if (!this.isStreamElement) {
return;
}