aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-04-12 13:47:32 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-04-12 13:47:32 +0200
commit82d1189d7ea816c4419c28558ce5ce4a5c26b16e (patch)
tree7a77f39d643fff499c110dcde0915aaf783af9ca /lisp/mastodon-tl.el
parent8b65f27106f55b7f2868ee4c7e1a965eee24fd97 (diff)
parente54deed13f3ccf3dc14d9a77417ee0688dc30987 (diff)
Merge branch 'develop'
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 794b198..e90be9a 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -414,7 +414,9 @@ With a double PREFIX arg, limit results to your own instance."
(let ((list (mastodon-http--build-array-params-alist "any[]" (cdr tag))))
(while list
(push (pop list) params))))
- (mastodon-tl--init (concat "tag-" (if (listp tag) "followed-tags" tag))
+ (mastodon-tl--init (if (listp tag)
+ "tags-multiple"
+ (concat "tag-" tag))
(concat "timelines/tag/" (if (listp tag)
;; endpoint needs to be /tag/:sometag
(car tag) tag))
@@ -2093,6 +2095,16 @@ Prefix is sent to `mastodon-tl--show-tag-timeline', which see."
(tags (mastodon-tl--map-alist 'name followed-tags-json)))
(mastodon-tl--show-tag-timeline prefix tags)))
+(defun mastodon-tl--some-followed-tags-timeline (&optional prefix)
+ "Prompt for some tags, and open a timeline for them.
+The suggestions are from followed tags, but any other tags are also allowed."
+ (interactive "p")
+ (let* ((followed-tags-json (mastodon-tl--followed-tags))
+ (tags (mastodon-tl--map-alist 'name followed-tags-json))
+ (selection (completing-read-multiple
+ "Tags' timelines to view [TAB to view, comma to separate]: "
+ tags)))
+ (mastodon-tl--show-tag-timeline prefix selection)))
;;; UPDATING, etc.