don't thread a self-repost of a self-reply (#1450)
* don't thread a self-repost of a self-reply * typozio/stable
parent
188d4893f9
commit
8593f41f36
|
@ -281,7 +281,10 @@ export class FeedTuner {
|
|||
|
||||
function getSelfReplyUri(item: FeedViewPost): string | undefined {
|
||||
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
|
||||
? item.reply.parent.uri
|
||||
: undefined
|
||||
|
|
Loading…
Reference in New Issue