aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-06-01 10:26:37 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-06-01 10:26:37 +0200
commit073ef686839944abc16f85883be8db84c95592ae (patch)
treec0a7b39d89a8aa9a67731975fa28ff2a8162b29b /lisp/mastodon.el
parent06627d5d3dfad265fabf5b80d39ebe82a070d1a9 (diff)
max-id arg/param for notifs-get
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r--lisp/mastodon.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index da3ffe2..42d9707 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -338,7 +338,7 @@ If REPLY-JSON is the json of the toot being replied to."
(mastodon-toot--compose-buffer user reply-to-id reply-json))
;;;###autoload
-(defun mastodon-notifications-get (&optional type buffer-name force)
+(defun mastodon-notifications-get (&optional type buffer-name force max-id)
"Display NOTIFICATIONS in buffer.
Optionally only print notifications of type TYPE, a string.
BUFFER-NAME is added to \"*mastodon-\" to create the buffer name.
@@ -356,7 +356,9 @@ from the server and load anew."
(mastodon-tl--init-sync (or buffer-name "notifications")
"notifications"
'mastodon-notifications--timeline
- type)
+ type
+ (when max-id
+ `("max_id" . ,(mastodon-tl--buffer-property 'max-id))))
(with-current-buffer buffer
(use-local-map mastodon-notifications--map)))))