aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-10-02 00:27:24 +0200
committermousebot <mousebot@riseup.net>2021-10-02 00:27:24 +0200
commit77f0d464c39693ffef7146aced2804e787a870de (patch)
tree2bf49b73a9aadf164882e101de0c4b1521058e75 /lisp/mastodon-toot.el
parente9188a2cdb2575e9b0c1c322431e1ebd686c4b9b (diff)
repair somewhat the media-upload functions and error handling
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 95f562c..0c3c784 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -78,10 +78,6 @@ Must be one of \"public\", \"unlisted\", \"private\" (for followers-only), or \"
Valid values are \"direct\", \"private\" (followers-only), \"unlisted\", and \"public\".")
(make-variable-buffer-local 'mastodon-toot--visibility)
-(defvar mastodon-toot--media-attachments nil
- "A flag indicating if the toot being composed has media attachments.")
-(make-variable-buffer-local 'mastodon-toot--media-attachments)
-
(defvar mastodon-toot--media-attachment-ids nil
"A list of any media attachment ids of the toot being composed.")
(make-variable-buffer-local 'mastodon-toot--media-attachment-ids)
@@ -316,7 +312,7 @@ If media items have been uploaded with `mastodon-toot--add-media-attachment', at
(symbol-name t)))
("spoiler_text" . ,spoiler)))
(args-media
- (when mastodon-toot--media-attachments
+ (when mastodon-toot--media-attachment-ids
(mapcar
(lambda (id)
(cons "media_ids[]" id))