aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-10-13 16:04:02 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-10-13 16:04:02 +0200
commit433a938c504b56dd05c3a8be1191ce7b15b1744f (patch)
tree4ab4a37f03835b314b9132ff6e75dde001a25683 /lisp
parent8c9f827d126a9663c920a3b4b43ad4f26101f3ca (diff)
hack to avoid repeat of last search status on calling --more*
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-tl.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 2aea4f4..0f3862a 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -2350,7 +2350,8 @@ HEADERS is the http headers returned in the response, if any."
;; 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))
+ (cdr ; avoid repeat of last status
+ (alist-get 'statuses response)))
((equal "hashtags" (mastodon-search--buf-type))
(alist-get 'hashtags response))
((equal "accounts" (mastodon-search--buf-type))