Fix repost rendering (#405)
This commit is contained in:
parent
4f886f712c
commit
b7648cfe73
2 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ function mergePosts(
|
||||||
|
|
||||||
function isARepostOfSomeoneElse(post: AppBskyFeedDefs.FeedViewPost): boolean {
|
function isARepostOfSomeoneElse(post: AppBskyFeedDefs.FeedViewPost): boolean {
|
||||||
return (
|
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
|
post.post.author.did !== (post.reason as ReasonRepost).by.did
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ export class PostsFeedItemModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
get reasonRepost(): ReasonRepost | undefined {
|
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
|
return this.reason as ReasonRepost
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue