aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-05-26 21:15:38 +0200
committermousebot <mousebot@riseup.net>2021-05-26 21:15:38 +0200
commit225c0b4acf12cae8593035a1e1662586ec8c74a8 (patch)
tree354f946ac763be26f1f7ce2a888067006195185c /lisp/mastodon-toot.el
parente86aaaefe20e5ff3036751b91f4f8fec4aaf5394 (diff)
flychecks and autoloads
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index cc65597..c507384 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -44,6 +44,8 @@
(autoload 'mastodon-tl--property "mastodon-tl")
(autoload 'mastodon-tl--find-property-range "mastodon-tl")
(autoload 'mastodon-toot "mastodon")
+(autoload 'mastodon-http--post-media-attachment "mastodon-http")
+(autoload 'mastodon-tl--toot-id "mastodon-tl")
(defgroup mastodon-toot nil
"Tooting in Mastodon."
@@ -187,8 +189,6 @@ Remove MARKER if REMOVE is non-nil, otherwise add it."
"Pin or unpin user's toot at point."
(interactive)
(let* ((toot (mastodon-tl--property 'toot-json))
- (id (mastodon-tl--as-string (mastodon-tl--toot-id toot)))
- (url (mastodon-http--api (format "statuses/%s/pin" id)))
(pinnable-p (and
(not (cdr (assoc 'reblog toot)))
(equal (cdr (assoc 'acct
@@ -249,7 +249,7 @@ Remove MARKER if REMOVE is non-nil, otherwise add it."
(buffer-substring (cdr header-region) (point-max))))
(defun mastodon-toot--set-visibility (visibility)
- "Sets the visiblity of the next toot"
+ "Sets the visiblity of the next toot to VISIBILITY."
(interactive
(list (completing-read "Visiblity: " '("public"
"unlisted"