aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-03-10 15:12:43 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-03-10 15:12:43 +0100
commitbf4eef8b2d85b7b4cde69a87b0f265b9d40f1cad (patch)
tree376c164dff32988609bd550d9b12b53a422f7293 /lisp
parent8b3a5dd807b363700b995b42aa43c93a4089c19e (diff)
notifs-get: fix buffer name setting
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index 04773c7..e70beb5 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -283,8 +283,9 @@ If REPLY-JSON is the json of the toot being replied to."
Optionally only print notifications of type TYPE, a string.
BUFFER-NAME is added to \"*mastodon-\" to create the buffer name."
(interactive)
- (let ((buffer (or (concat "*mastodon-" buffer-name "*")
- "*mastodon-notifications*")))
+ (let ((buffer (if buffer-name
+ (concat "*mastodon-" buffer-name "*")
+ "*mastodon-notifications*")))
(if (get-buffer buffer)
(progn (switch-to-buffer buffer)
(mastodon-tl--update))