From ad61d87ffbe3ad306fa61126533aef6e48894b53 Mon Sep 17 00:00:00 2001 From: Tarek Khalil <45508821+khalilovcmded@users.noreply.github.com> Date: Wed, 24 Apr 2019 13:54:46 +0100 Subject: [PATCH] FIX: Do not replace text of collapsed ignore posts (#7422) --- app/assets/javascripts/discourse/widgets/embedded-post.js.es6 | 1 + app/assets/javascripts/discourse/widgets/post-cooked.js.es6 | 1 + 2 files changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/widgets/embedded-post.js.es6 b/app/assets/javascripts/discourse/widgets/embedded-post.js.es6 index 503a4f4e089..38ce50bf242 100644 --- a/app/assets/javascripts/discourse/widgets/embedded-post.js.es6 +++ b/app/assets/javascripts/discourse/widgets/embedded-post.js.es6 @@ -29,6 +29,7 @@ export default createWidget("embedded-post", { buildKey: attrs => `embedded-post-${attrs.id}`, html(attrs, state) { + attrs.embeddedPost = true; return [ h("div.reply", { attributes: { "data-post-id": attrs.id } }, [ h("div.row", [ diff --git a/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 b/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 index cedbcea88b4..3d2dbb151ef 100644 --- a/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 @@ -262,6 +262,7 @@ export default class PostCooked { _computeCooked() { if ( + this.attrs.embeddedPost && this.ignoredUsers && this.ignoredUsers.length > 0 && this.ignoredUsers.includes(this.attrs.username)