diff options
author | mousebot <mousebot@riseup.net> | 2022-01-15 18:55:26 +0100 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2022-01-15 18:55:26 +0100 |
commit | 5994d01cf15800f274206819145cbf7ba176a007 (patch) | |
tree | 1feb2fb00c2c67e4cfd6e92f5702531aa56b8d9f /lisp/mastodon-notifications.el | |
parent | 70546e4fd9951b31685a9063653b72b3ce6e44db (diff) |
handle a buggy empty notification
i received an notification (also in other clients/web interface) attached to
no toot. these checks should allow notifications view to display without
tripping up on any such vacant notifs from the server.
Diffstat (limited to 'lisp/mastodon-notifications.el')
-rw-r--r-- | lisp/mastodon-notifications.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el index c245edb..77d40a8 100644 --- a/lisp/mastodon-notifications.el +++ b/lisp/mastodon-notifications.el @@ -223,7 +223,8 @@ takes a single function. By default it is `mastodon-tl--byline-boosted'. ID is the notification's own id, which is attached as a property." - (mastodon-tl--insert-status toot body author-byline action-byline id)) + (when toot ; handle rare blank notif server bug + (mastodon-tl--insert-status toot body author-byline action-byline id))) (defun mastodon-notifications--by-type (note) "Filters NOTE for those listed in `mastodon-notifications--types-alist'." |