chore: update lint
This commit is contained in:
parent
c7558ee7c5
commit
9465c2fe89
20 changed files with 164 additions and 124 deletions
|
@ -88,7 +88,11 @@ function groupItems(items: mastodon.v1.Notification[]): NotificationSlot[] {
|
|||
}
|
||||
like[notification.type === 'reblog' ? 'reblog' : 'favourite'] = notification
|
||||
}
|
||||
likes.sort((a, b) => a.reblog ? !b.reblog || (a.favourite && !b.favourite) ? -1 : 0 : 0)
|
||||
likes.sort((a, b) => a.reblog
|
||||
? (!b.reblog || (a.favourite && !b.favourite))
|
||||
? -1
|
||||
: 0
|
||||
: 0)
|
||||
results.push({
|
||||
id: `grouped-${id++}`,
|
||||
type: 'grouped-reblogs-and-favourites',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue