diff --git a/src/api-client.lisp b/src/api-client.lisp index 95847e8..0b7def3 100644 --- a/src/api-client.lisp +++ b/src/api-client.lisp @@ -857,9 +857,8 @@ the latest 15 mentions)." (labels ((%notifications () (when-let* ((min-id (tooter:id (first notifications-so-far))) (notifications (sort-id< (notifications min-id excluded-types)))) - (loop for notification in notifications do - (when (find notification notifications-so-far :test (make-id=)) + (when (not (find notification notifications-so-far :test (make-id=))) (hooks:run-hook 'hooks:*after-getting-fediverse-notification* notification) (push notification notifications-so-far)))