aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-19 17:58:01 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-19 18:01:47 +0100
commit25f7e47beddb8fcf789a7e06a03fce5339f8500d (patch)
treea58c35ece1d10fd120391fd633b49465c3a42818 /lisp/mastodon-toot.el
parent38b6075e5ce35f512321f05cd5f9f9d622703845 (diff)
http--post - make args + headers optional args
also update all calls to it, no need for nil nil everywhere.
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 53e60bd..d0eb143 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -268,7 +268,7 @@ boosting, or bookmarking toots."
(mastodon-tl--as-string id)
"/"
action))))
- (let ((response (mastodon-http--post url nil nil)))
+ (let ((response (mastodon-http--post url)))
(mastodon-http--triage response callback))))
(defun mastodon-toot--toggle-boost-or-favourite (type)
@@ -666,7 +666,7 @@ If media items have been attached and uploaded with
((mastodon-toot--empty-p)
(message "Empty toot. Cowardly refusing to post this."))
(t
- (let ((response (mastodon-http--post endpoint args nil)))
+ (let ((response (mastodon-http--post endpoint args)))
(mastodon-http--triage response
(lambda ()
(mastodon-toot--kill)