aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-profile.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-08-31 12:44:52 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-08-31 12:44:52 +0200
commit59a1fbda1f6c3d8cc20714eb000e05bee7c5310e (patch)
tree4cd72455110f76c33872c030e041225b61a58fb8 /lisp/mastodon-profile.el
parentde033f831b10fa84b0ba36f067788d2c7587dc7a (diff)
http--patch: make general function, not just for note
- this way we can build funs to change basic account options.
Diffstat (limited to 'lisp/mastodon-profile.el')
-rw-r--r--lisp/mastodon-profile.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 0496d53..a27afd2 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -237,7 +237,7 @@ JSON is the data returned by the server."
(let* ((note (buffer-substring-no-properties (point-min) (point-max)))
(url (mastodon-http--api "accounts/update_credentials")))
(kill-buffer-and-window)
- (let ((response (mastodon-http--patch url note)))
+ (let ((response (mastodon-http--patch url `((note ,note)))))
(mastodon-http--triage response
(lambda () (message "Profile note updated!"))))))