diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-13 21:24:22 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-13 21:24:22 +0200 |
commit | 57aec26ea873dd8c93d3d438a26af9d79cc867cd (patch) | |
tree | 05820aed6a2f1488bfd00eae2f025fd7bbefc12a /lisp | |
parent | b75760867bd00f80b35779abc517719600228b35 (diff) |
remove "api/v1/" from trends endpoint in buffer spec and buffer checks
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-search.el | 3 | ||||
-rw-r--r-- | lisp/mastodon-tl.el | 6 |
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") |