Elide long threads in the feed (close #333)

This commit is contained in:
Paul Frazee 2023-03-21 13:36:27 -05:00
parent b692f29773
commit 1e34e62259
3 changed files with 85 additions and 38 deletions

View file

@ -200,6 +200,7 @@ export class FeedSliceModel {
get isThread() {
return (
this.items.length > 1 &&
!this.items[0].reply &&
this.items.every(
item => item.post.author.did === this.items[0].post.author.did,
)
@ -207,7 +208,7 @@ export class FeedSliceModel {
}
get isReply() {
return this.items.length === 2 && !this.isThread
return this.items.length > 1 && !this.isThread
}
get rootItem() {