Fix notifications for Pixelfed

pull/501/head
Lim Chee Aun 2024-04-13 17:09:56 +08:00
rodzic df3aca70fa
commit 7be620808f
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -72,6 +72,13 @@ function Notifications({ columnMode }) {
excludeTypes: ['follow_request'],
});
}
if (/max_id=($|&)/i.test(notificationsIterator.current?.nextParams)) {
// Pixelfed returns next paginationed link with empty max_id
// I assume, it's done (end of list)
return {
done: true,
};
}
const allNotifications = await notificationsIterator.current.next();
const notifications = allNotifications.value;