diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index b226978..702dbe0 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -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;