aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-02-18 22:35:27 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-02-18 22:36:53 +0100
commit8c2ed534a61b036b580a5932dc4e83979a6bcdba (patch)
treed2600f6314972d10f572cf97b652d4cfade6aece /lisp
parentc35f7d63bb06dd8f53a092a8b186361b327460e6 (diff)
refactor tl--get-link-header
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-tl.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 817c85d..2f27a94 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -3000,8 +3000,8 @@ This location is defined by a non-nil value of
(defun mastodon-tl--get-link-header-from-response (headers)
"Get http Link header from list of http HEADERS."
;; pleroma uses "link", so case-insensitive match required:
- (when (alist-get "Link" headers nil nil 'cl-equalp)
- (split-string (alist-get "Link" headers nil nil 'cl-equalp) ", ")))
+ (when-let ((link-headers (alist-get "Link" headers nil nil 'cl-equalp)))
+ (split-string link-headers ", ")))
(defun mastodon-tl--init (buffer-name endpoint update-function
&optional headers params hide-replies)