Fix reply-root reference (fixes thread muting) (#957)
parent
696bffe832
commit
343154a403
|
@ -51,6 +51,7 @@ export class PostThreadItemModel {
|
|||
get uri() {
|
||||
return this.post.uri
|
||||
}
|
||||
|
||||
get parentUri() {
|
||||
return this.postRecord?.reply?.parent.uri
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue