[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon ca0b443a79 13/52: fix init-sync for notifs-get co
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon ca0b443a79 13/52: fix init-sync for notifs-get compat with link-header/get-response |
Date: |
Mon, 30 Oct 2023 16:01:24 -0400 (EDT) |
branch: elpa/mastodon
commit ca0b443a79bfe54b77bd7ffebbc0e1f361c2d783
Author: marty hiatt <martianhiatus [a t] riseup [d o t] net>
Commit: marty hiatt <martianhiatus [a t] riseup [d o t] net>
fix init-sync for notifs-get compat with link-header/get-response
---
lisp/mastodon-tl.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index d5d127db52..67ceb9e991 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -2672,11 +2672,13 @@ Optional arg NOTE-TYPE means only get that type of
note."
(url (mastodon-http--api endpoint))
(buffer (concat "*mastodon-" buffer-name "*"))
(response (mastodon-http--get-response url params))
- (json (if headers (car response) response))
- (headers (if headers (cdr response) nil))
- (link-header (mastodon-tl--get-link-header-from-response headers)))
+ (json (car response))
+ (headers (when headers (cdr response)))
+ (link-header (when headers
+ (mastodon-tl--get-link-header-from-response headers))))
(with-mastodon-buffer buffer #'mastodon-mode nil
- (mastodon-tl--set-buffer-spec buffer endpoint update-function
link-header params)
+ (mastodon-tl--set-buffer-spec buffer endpoint update-function
+ link-header params)
(mastodon-tl--do-init json update-function)
buffer)))
- [nongnu] elpa/mastodon 574c17c4bd 21/52: toot-id>item-id, toot-json>item-json, item-type for nav, byline still needed, (continued)
- [nongnu] elpa/mastodon 574c17c4bd 21/52: toot-id>item-id, toot-json>item-json, item-type for nav, byline still needed, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 48d362c6d9 37/52: no pagination for lists, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 1bfcb22043 42/52: note re tags timeline limit number of tags, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 312573f7ef 10/52: cond for more* pagination woes, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon f8ab918cf2 08/52: partly refactor views function., ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon a169646f8c 28/52: mastodon-toot--own-toot-p: call toot-or-base: we can edit our boosted toots, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 6d80f5b2d2 12/52: minor-view fixme, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 9aac053495 20/52: masto views map: use prev/next-toot, not item for n/p, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon b86d546cbe 25/52: fix do-if-item comment: doesn't inc. tags, corrent for our use, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon d8bd51da80 46/52: readme contributing, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon ca0b443a79 13/52: fix init-sync for notifs-get compat with link-header/get-response,
ELPA Syncer <=
- [nongnu] elpa/mastodon b8d0c9b967 41/52: triage: call cb on response. do-user-action-fun: check response data, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 0fc64df90d 14/52: fix minor-view disaster disastrously: put it all init-sync, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 1e40c8d19f 17/52: docstrings, autoloads, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 0bd2bea47d 27/52: override shr-linkmap 'u' binding, to update. 'w' is copy-url already, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 78ff4a75ea 36/52: item-type list for list, not user (stray value), ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 826c228d09 34/52: edit list: exclusive proper true/false strings, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon cf7b3710c6 48/52: Merge branch 'develop', ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 1ce402833e 50/52: flychecks, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon a8c80d25b7 52/52: update cmd index, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 7676946d83 51/52: update cmd index, ELPA Syncer, 2023/10/30