don't thread a self-repost of a self-reply (#1450)
* don't thread a self-repost of a self-reply * typo
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user