FIX: Do not replace text of collapsed ignore posts (#7422)

This commit is contained in:
Tarek Khalil 2019-04-24 13:54:46 +01:00 committed by GitHub
parent a452933071
commit ad61d87ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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", [

View File

@ -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)