don't thread a self-repost of a self-reply (#1450)

* don't thread a self-repost of a self-reply

* typo
zio/stable
Eric Bailey 2023-09-15 11:34:12 -05:00 committed by GitHub
parent 188d4893f9
commit 8593f41f36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -281,7 +281,10 @@ export class FeedTuner {
function getSelfReplyUri(item: FeedViewPost): string | undefined { function getSelfReplyUri(item: FeedViewPost): string | undefined {
if (item.reply) { if (item.reply) {
if (AppBskyFeedDefs.isPostView(item.reply.parent)) { if (
AppBskyFeedDefs.isPostView(item.reply.parent) &&
!AppBskyFeedDefs.isReasonRepost(item.reason) // don't thread reposted self-replies
) {
return item.reply.parent.author.did === item.post.author.did return item.reply.parent.author.did === item.post.author.did
? item.reply.parent.uri ? item.reply.parent.uri
: undefined : undefined