aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-12-15 10:39:20 +0100
committermousebot <mousebot@riseup.net>2021-12-15 10:43:49 +0100
commit2259577b8616005fd0265e211ae63188f4b32a3d (patch)
treeec491ce029005cd7eb74b571a93c7a258f85acd3 /lisp/mastodon-http.el
parentf22cfa60d301a1b834cb86f6f9b75b57d9dab6e8 (diff)
a first hack to make media uploads immediate and async.
this commit moves the call to -upload-attached-media into -attach-media. upload-attached-media now uploads a single item only, whichever file has just been selected at the prompt. but we still use the list of attached-media to handle preview displays.
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index 1ec0dc0..a4f126f 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -261,7 +261,7 @@ item uploaded, and `mastodon-toot--update-status-fields' is run."
:parser 'json-read
:headers `(("Authorization" . ,(concat "Bearer "
(mastodon-auth--access-token))))
- :sync t
+ :sync nil
:success (cl-function
(lambda (&key data &allow-other-keys)
(when data