about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-07-03 17:54:09 -0500
committerGitHub <noreply@github.com>2023-07-03 17:54:09 -0500
commit343154a403f5f8422de519795395772620edb929 (patch)
tree59cd548d0946d80b0d94ca39d823480fbf78a756 /src
parent696bffe832c8ce748f2e4cc31e82764a6afb5b66 (diff)
downloadvoidsky-343154a403f5f8422de519795395772620edb929.tar.zst
Fix reply-root reference (fixes thread muting) (#957)
Diffstat (limited to 'src')
-rw-r--r--src/state/models/content/post-thread-item.ts1
-rw-r--r--src/state/models/feeds/post.ts4
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
   }