about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-04-06 16:28:45 -0500
committerGitHub <noreply@github.com>2023-04-06 16:28:45 -0500
commitb7648cfe739db08521f3af53785c219466119087 (patch)
treeb7af0f8cff7b35636a3d23f01cb321a335bc4fd9 /src
parent4f886f712c09629a8bc2751e360ca2c7f9ae842f (diff)
downloadvoidsky-b7648cfe739db08521f3af53785c219466119087.tar.zst
Fix repost rendering (#405)
Diffstat (limited to 'src')
-rw-r--r--src/lib/api/build-suggested-posts.ts2
-rw-r--r--src/state/models/feeds/posts.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/api/build-suggested-posts.ts b/src/lib/api/build-suggested-posts.ts
index b9feefc72..554869d98 100644
--- a/src/lib/api/build-suggested-posts.ts
+++ b/src/lib/api/build-suggested-posts.ts
@@ -94,7 +94,7 @@ function mergePosts(
 
 function isARepostOfSomeoneElse(post: AppBskyFeedDefs.FeedViewPost): boolean {
   return (
-    post.reason?.$type === 'app.bsky.feed.feedViewPost#reasonRepost' &&
+    post.reason?.$type === 'app.bsky.feed.defs#reasonRepost' &&
     post.post.author.did !== (post.reason as ReasonRepost).by.did
   )
 }
diff --git a/src/state/models/feeds/posts.ts b/src/state/models/feeds/posts.ts
index 8a726ca8b..c82453946 100644
--- a/src/state/models/feeds/posts.ts
+++ b/src/state/models/feeds/posts.ts
@@ -85,7 +85,7 @@ export class PostsFeedItemModel {
   }
 
   get reasonRepost(): ReasonRepost | undefined {
-    if (this.reason?.$type === 'app.bsky.feed.feedViewPost#reasonRepost') {
+    if (this.reason?.$type === 'app.bsky.feed.defs#reasonRepost') {
       return this.reason as ReasonRepost
     }
   }