Fix reply-root reference (fixes thread muting) (#957)
parent
696bffe832
commit
343154a403
|
@ -51,6 +51,7 @@ export class PostThreadItemModel {
|
||||||
get uri() {
|
get uri() {
|
||||||
return this.post.uri
|
return this.post.uri
|
||||||
}
|
}
|
||||||
|
|
||||||
get parentUri() {
|
get parentUri() {
|
||||||
return this.postRecord?.reply?.parent.uri
|
return this.postRecord?.reply?.parent.uri
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,8 +76,8 @@ export class PostsFeedItemModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
get rootUri(): string {
|
get rootUri(): string {
|
||||||
if (typeof this.reply?.root.uri === 'string') {
|
if (typeof this.postRecord?.reply?.root.uri === 'string') {
|
||||||
return this.reply.root.uri
|
return this.postRecord?.reply?.root.uri
|
||||||
}
|
}
|
||||||
return this.post.uri
|
return this.post.uri
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue