From e4d8d80cf8bb2bfb0b9b85d57b36fe36e6014411 Mon Sep 17 00:00:00 2001 From: Tarek Khalil <45508821+khalilovcmded@users.noreply.github.com> Date: Wed, 24 Apr 2019 16:00:20 +0100 Subject: [PATCH] FIX: Make sure we hide the first post in a topic by an ignored user (#7428) --- app/assets/javascripts/discourse/widgets/post-cooked.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)