diff options
Diffstat (limited to 'src')
-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 } } |