diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-03-23 15:11:58 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-03-23 15:12:18 +0100 |
commit | 51ebf711241333195756865034c15391bf54f401 (patch) | |
tree | 657aff99b5693dae35528012a27e95dec5f72912 /lisp/mastodon-tl.el | |
parent | a57c8c031a79c0d5dda1b3364e2cf2d5844c13e7 (diff) |
make list-follow-tags idiot proof
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 6 |
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. |