aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-notifications.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-18 12:31:53 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-18 12:31:53 +0100
commit1f3f41e9832d0a485e95c0c5c57f70809684a12d (patch)
tree684f9bb4ac9167fb72a53ddf5427e4d647c741bc /lisp/mastodon-notifications.el
parent784f5d258db820481bc468a8cb1aa9e59793340f (diff)
notifs mentions -- also set buffer name
Diffstat (limited to 'lisp/mastodon-notifications.el')
-rw-r--r--lisp/mastodon-notifications.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el
index bb01b77..a33a96b 100644
--- a/lisp/mastodon-notifications.el
+++ b/lisp/mastodon-notifications.el
@@ -269,13 +269,13 @@ of the toot responded to."
(mapc #'mastodon-notifications--by-type json)
(goto-char (point-min))))
-(defun mastodon-notifications--get (&optional type)
+(defun mastodon-notifications--get (&optional type buffer-name)
"Display NOTIFICATIONS in buffer.
Optionally only print notifications of type TYPE, a string."
(interactive)
(message "Loading your notifications...")
(mastodon-tl--init-sync
- "notifications"
+ (or buffer-name "notifications")
"notifications"
'mastodon-notifications--timeline
type)
@@ -284,7 +284,7 @@ Optionally only print notifications of type TYPE, a string."
(defun mastodon-notifications--get-mentions ()
"Display mention notifications in buffer."
(interactive)
- (mastodon-notifications--get "mention"))
+ (mastodon-notifications--get "mention" "mentions"))
(defun mastodon-notifications--filter-types-list (type)
"Return a list of notification types with TYPE (and \"status\") removed."