diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-08-13 09:00:21 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-08-13 09:00:21 +0200 |
commit | 25ab62e57f67e3b8edc7702f7c601856dd5ad7bf (patch) | |
tree | 55e01b5e9ef43540de73daf77ccc2d5a22498a0b /lisp | |
parent | dccf84397d43135e2c2fd15ab918e887ff0eed9d (diff) |
init-sync - add endpoint version arg (for v2 filters)
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-tl.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index a4d6ec0..5088212 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -3117,7 +3117,8 @@ JSON and http headers, without it just the JSON." (defun mastodon-tl--init-sync (buffer-name endpoint update-function - &optional note-type params headers view-name binding-str) + &optional note-type params headers view-name binding-str + endpoint-version) "Initialize BUFFER-NAME with timeline targeted by ENDPOINT. UPDATE-FUNCTION is used to receive more toots. Runs synchronously. @@ -3133,7 +3134,7 @@ BINDING-STR is a string explaining any bindins in the view." (mastodon-http--build-array-params-alist "exclude_types[]" exclude-types))) (params (append notes-params params)) - (url (mastodon-http--api endpoint)) + (url (mastodon-http--api endpoint endpoint-version)) (buffer (concat "*mastodon-" buffer-name "*")) (response (mastodon-http--get-response url params)) (json (car response)) |