emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/mastodon 433a938c50 22/47: hack to avoid repeat of last se


From: ELPA Syncer
Subject: [nongnu] elpa/mastodon 433a938c50 22/47: hack to avoid repeat of last search status on calling --more*
Date: Fri, 13 Oct 2023 19:00:56 -0400 (EDT)

branch: elpa/mastodon
commit 433a938c504b56dd05c3a8be1191ce7b15b1744f
Author: marty hiatt <martianhiatus [a t] riseup [d o t] net>
Commit: marty hiatt <martianhiatus [a t] riseup [d o t] net>

    hack to avoid repeat of last search status on calling --more*
---
 lisp/mastodon-tl.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 2aea4f40c9..0f3862af0c 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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]