mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: Do not replace text of collapsed ignore posts (#7422)
This commit is contained in:
parent
a452933071
commit
ad61d87ffb
@ -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", [
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user