Fix reply-root reference (fixes thread muting) (#957)

zio/stable
Paul Frazee 2023-07-03 17:54:09 -05:00 committed by GitHub
parent 696bffe832
commit 343154a403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -51,6 +51,7 @@ export class PostThreadItemModel {
get uri() {
return this.post.uri
}
get parentUri() {
return this.postRecord?.reply?.parent.uri
}

View File

@ -76,8 +76,8 @@ export class PostsFeedItemModel {
}
get rootUri(): string {
if (typeof this.reply?.root.uri === 'string') {
return this.reply.root.uri
if (typeof this.postRecord?.reply?.root.uri === 'string') {
return this.postRecord?.reply?.root.uri
}
return this.post.uri
}