mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Fix notifications for Pixelfed
This commit is contained in:
parent
df3aca70fa
commit
7be620808f
1 changed files with 7 additions and 0 deletions
|
@ -72,6 +72,13 @@ function Notifications({ columnMode }) {
|
||||||
excludeTypes: ['follow_request'],
|
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 allNotifications = await notificationsIterator.current.next();
|
||||||
const notifications = allNotifications.value;
|
const notifications = allNotifications.value;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue