diff options
author | mousebot <mousebot@riseup.net> | 2021-10-26 18:28:50 +0200 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-10-26 18:28:50 +0200 |
commit | c60eb355232e57fec9fe97f366a3a2176f8c4110 (patch) | |
tree | 40d0e69da6f5ed789f7643297027104d346cc9a6 /lisp | |
parent | f9a4bab4a81f96407c38a1a45719d45827b9f585 (diff) |
api/v2 for media attachment uploads
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-toot.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 3e60d2d..14dcc29 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -567,7 +567,7 @@ It adds the items' ids to `mastodon-toot--media-attachment-ids', which is used t (mapcar (lambda (attachment) (let* ((filename (cdr (assoc :filename attachment))) (caption (cdr (assoc :description attachment))) - (url (concat mastodon-instance-url "/api/v1/media"))) + (url (concat mastodon-instance-url "/api/v2/media"))) (message "Uploading %s..." (file-name-nondirectory filename)) (mastodon-http--post-media-attachment url filename caption))) mastodon-toot--media-attachments)) |