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}`,
|
buildKey: attrs => `embedded-post-${attrs.id}`,
|
||||||
|
|
||||||
html(attrs, state) {
|
html(attrs, state) {
|
||||||
|
attrs.embeddedPost = true;
|
||||||
return [
|
return [
|
||||||
h("div.reply", { attributes: { "data-post-id": attrs.id } }, [
|
h("div.reply", { attributes: { "data-post-id": attrs.id } }, [
|
||||||
h("div.row", [
|
h("div.row", [
|
||||||
|
|
|
@ -262,6 +262,7 @@ export default class PostCooked {
|
||||||
|
|
||||||
_computeCooked() {
|
_computeCooked() {
|
||||||
if (
|
if (
|
||||||
|
this.attrs.embeddedPost &&
|
||||||
this.ignoredUsers &&
|
this.ignoredUsers &&
|
||||||
this.ignoredUsers.length > 0 &&
|
this.ignoredUsers.length > 0 &&
|
||||||
this.ignoredUsers.includes(this.attrs.username)
|
this.ignoredUsers.includes(this.attrs.username)
|
||||||
|
|
Loading…
Reference in New Issue