diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/state/models/content/post-thread-item.ts | 1 | ||||
-rw-r--r-- | src/state/models/feeds/post.ts | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/state/models/content/post-thread-item.ts b/src/state/models/content/post-thread-item.ts index 9b8f42b3b..14aa607ed 100644 --- a/src/state/models/content/post-thread-item.ts +++ b/src/state/models/content/post-thread-item.ts @@ -51,6 +51,7 @@ export class PostThreadItemModel { get uri() { return this.post.uri } + get parentUri() { return this.postRecord?.reply?.parent.uri } diff --git a/src/state/models/feeds/post.ts b/src/state/models/feeds/post.ts index 8e3c9b03e..47039c72a 100644 --- a/src/state/models/feeds/post.ts +++ b/src/state/models/feeds/post.ts @@ -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 } |