diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-19 19:14:29 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-19 19:14:29 +0100 |
commit | e4c809efce66eeaf272441cb9ea842340d18f68a (patch) | |
tree | 0fc59de729552f3f0a55116324289cdd85c547f0 /lisp/mastodon-tl.el | |
parent | 0f5bbfe887f3ab253a6436914b1cf35fa6753a47 (diff) |
list followed tags
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 6618c48..20ac788 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -2169,6 +2169,17 @@ If TAG if provided, unfollow it." (lambda () (message "tag #%s unfollowed!" tag))))) +(defun mastodon-tl--list-followed-tags () + "List tags followed. If user choses one, display its JSON." + (interactive) + (let* ((followed-tags-json (mastodon-tl--followed-tags)) + (tags (mapcar (lambda (x) + (alist-get 'name x)) + followed-tags-json)) + (tag (completing-read "Tag: " tags))) + (message (prin1-to-string + (mastodon-tl--get-tag-json tag))))) + ;; TODO: add this to new posts in some cases, e.g. in thread view. (defun mastodon-tl--reload-timeline-or-profile () "Reload the current timeline or profile page. |