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:
parent
188d4893f9
commit
8593f41f36
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue