aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/mastodon-search.el3
-rw-r--r--lisp/mastodon-tl.el6
2 files changed, 4 insertions, 5 deletions
diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el
index 56c833d..287d593 100644
--- a/lisp/mastodon-search.el
+++ b/lisp/mastodon-search.el
@@ -116,8 +116,7 @@ PRINT-FUN is the function used to print the data from the response."
(buffer (get-buffer-create (format "*mastodon-trending-%s*" type))))
(with-mastodon-buffer buffer #'mastodon-mode nil
(mastodon-tl--set-buffer-spec (buffer-name buffer)
- (format "api/v1/trends/%s" type)
- nil)
+ (format "trends/%s" type)
(insert (mastodon-tl--set-face
(concat "\n " mastodon-tl--horiz-bar "\n"
(upcase (format " TRENDING %s\n" type))
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index a0e7a61..6b7e33d 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1584,11 +1584,11 @@ call this function after it is set or use something else."
((equal (mastodon-search--buf-type) "statuses")
'search-statuses)))
;; trends
- ((mastodon-tl--endpoint-str-= "api/v1/trends/statuses")
+ ((mastodon-tl--endpoint-str-= "trends/statuses")
'trending-statuses)
- ((mastodon-tl--endpoint-str-= "api/v1/trends/tags")
+ ((mastodon-tl--endpoint-str-= "trends/tags")
'trending-tags)
- ((mastodon-tl--endpoint-str-= "api/v1/trends/links")
+ ((mastodon-tl--endpoint-str-= "trends/links")
'trending-links)
;; User's views:
((mastodon-tl--endpoint-str-= "filters")