diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-13 16:02:27 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-13 16:02:27 +0200 |
commit | 8c9f827d126a9663c920a3b4b43ad4f26101f3ca (patch) | |
tree | 135e28144dadaa7369c92c02332319edde5ea9ce /lisp/mastodon-tl.el | |
parent | d0d4188bf9783e51413686ff92148b4505a0065b (diff) |
tl--more*: add cond to handle search data if in search buffer
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index d32b806..2aea4f4 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -2347,6 +2347,14 @@ HEADERS is the http headers returned in the response, if any." (when response (let* ((inhibit-read-only t) (json (if headers (car response) response)) + ;; FIXME: max-id pagination works for statuses only, not other + ;; search results pages: + (json (cond ((equal "statuses" (mastodon-search--buf-type)) + (alist-get 'statuses response)) + ((equal "hashtags" (mastodon-search--buf-type)) + (alist-get 'hashtags response)) + ((equal "accounts" (mastodon-search--buf-type)) + (alist-get 'accounts response)))) (headers (if headers (cdr response) nil)) (link-header (mastodon-tl--get-link-header-from-response headers))) (goto-char (point-max)) |