aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-04-01 09:53:24 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-04-01 09:53:24 +0200
commitd2cf869d4917d0a12c9aa866522632b72aceca7f (patch)
tree7bf8c1cf740b772e1bd1e4e4b223f7bcc5a20ab9
parent609e3243d3a772c2a9cbf2982a5871aadcd6dca9 (diff)
add trending types to -get-buffer-type. FIX #427.
-rw-r--r--lisp/mastodon-tl.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 60ebc80..3c66176 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1489,8 +1489,13 @@ call this function after it is set or use something else."
;; search
((string-suffix-p "search" endpoint-fun)
'search)
- ((string-suffix-p "trends" endpoint-fun)
+ ;; trends
+ ((equal "api/v1/trends/statuses" endpoint-fun)
+ 'trending-statuses)
+ ((equal "api/v1/trends/tags" endpoint-fun)
'trending-tags)
+ ((equal "api/v1/trends/links" endpoint-fun)
+ 'trending-links)
;; User's views:
((string= "filters" endpoint-fun)
'filters)