aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-03-23 15:11:58 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-03-23 15:11:58 +0100
commitf42a3aea506b5258dcf3e2b55d211d89f68a6c8a (patch)
treeaee9ed7c9a4ee49a6eda70d21a62cdeb5053a974 /lisp
parent2b624abe68a71d5a1b9c8f29d4dd8c0fa147b144 (diff)
make list-follow-tags idiot proof
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-tl.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 644a3d4..f557282 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -2037,8 +2037,10 @@ If TAG is provided, unfollow it."
(interactive)
(let* ((followed-tags-json (mastodon-tl--followed-tags))
(tags (mastodon-tl--map-alist 'name followed-tags-json))
- (tag (completing-read "Tag: " tags)))
- (mastodon-tl--get-tag-timeline tag)))
+ (tag (completing-read "Tag: " tags nil)))
+ (if (null tag)
+ (message "You have to follow some tags first.")
+ (mastodon-tl--get-tag-timeline tag))))
;;; UPDATING, etc.