aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authorJohnson Denen <johnson.denen@gmail.com>2017-04-23 09:28:14 -0400
committerJohnson Denen <johnson.denen@gmail.com>2017-04-23 11:09:06 -0400
commitcf814e11bdb9c3f7a8b4aeed61d429a28a4d66cb (patch)
tree459183e386e4136efa476d20e82f9f89351d6d71 /lisp/mastodon-toot.el
parent993fbec64edf128ba9e5a1aa61f93c385fe3be31 (diff)
Group API endpoint function with mastodon-http
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 9096a47..1277a9c 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -46,7 +46,7 @@
(defun mastodon-toot--action (action callback)
"Take ACTION on toot at point, then execute CALLBACK."
(let* ((id (mastodon-tl--property 'toot-id))
- (url (mastodon--api-for (concat "statuses/"
+ (url (mastodon-http--api (concat "statuses/"
(number-to-string id)
"/"
action))))
@@ -63,7 +63,7 @@
"Kill new-toot buffer/window and POST contents to the Mastodon instance."
(interactive)
(let* ((toot (buffer-string))
- (endpoint (mastodon--api-for "statuses"))
+ (endpoint (mastodon-http--api "statuses"))
(args `(("status" . ,toot)
("in_reply_to_id" . ,mastodon-toot--reply-to-id))))
(progn