diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-06 16:28:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 16:28:45 -0500 |
commit | b7648cfe739db08521f3af53785c219466119087 (patch) | |
tree | b7af0f8cff7b35636a3d23f01cb321a335bc4fd9 | |
parent | 4f886f712c09629a8bc2751e360ca2c7f9ae842f (diff) | |
download | voidsky-b7648cfe739db08521f3af53785c219466119087.tar.zst |
Fix repost rendering (#405)
-rw-r--r-- | src/lib/api/build-suggested-posts.ts | 2 | ||||
-rw-r--r-- | src/state/models/feeds/posts.ts | 2 |
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 } } |