fix: subscribe to proper user.notification stream (#2566)

This commit is contained in:
patak 2024-01-21 09:52:52 +01:00 committed by GitHub
parent b8e8693342
commit 7322711609
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 6 deletions

View file

@ -5,7 +5,6 @@ import type { PaginatorState } from '~/types'
export function usePaginator<T, P, U = T>(
_paginator: mastodon.Paginator<T[], P>,
stream: Ref<mastodon.streaming.Subscription | undefined>,
eventType: 'notification' | 'update' = 'update',
preprocess: (items: (T | U)[]) => U[] = items => items as unknown as U[],
buffer = 10,
) {