Skip to content

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

FIX: Make sure we hide the first post in a topic by an ignored user (#7428)

Tarek Khalile4d8d80cf8bb
diff --git a/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 b/app/assets/javascripts/discourse/widgets/post-cooked.js.es6
index 3d2dbb151ef..4daa4267745 100644
--- a/app/assets/javascripts/discourse/widgets/post-cooked.js.es6
+++ b/app/assets/javascripts/discourse/widgets/post-cooked.js.es6
@@ -262,7 +262,7 @@ export default class PostCooked {
_computeCooked() {
if (
- this.attrs.embeddedPost &&
+ (this.attrs.firstPost || this.attrs.embeddedPost) &&
this.ignoredUsers &&
this.ignoredUsers.length > 0 &&
this.ignoredUsers.includes(this.attrs.username)