From 4c7c6f4f3cb832cecc67da23e4567e11a236adf7 Mon Sep 17 00:00:00 2001 From: mousebot Date: Fri, 29 Oct 2021 11:18:57 +0200 Subject: fix for image uploads error in 'emacs -Q': expand file name! --- lisp/mastodon-toot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 70b95d3..309b64a 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -565,7 +565,8 @@ will be uploaded and attached to the toot upon sending." It adds the items' ids to `mastodon-toot--media-attachment-ids', which is used to actually attach them to a toot after uploading." (interactive) (mapcar (lambda (attachment) - (let* ((filename (cdr (assoc :filename attachment))) + (let* ((filename (expand-file-name + (cdr (assoc :filename attachment)))) (caption (cdr (assoc :description attachment))) (url (concat mastodon-instance-url "/api/v2/media"))) (message "Uploading %s..." (file-name-nondirectory filename)) -- cgit v1.2.3