From cf814e11bdb9c3f7a8b4aeed61d429a28a4d66cb Mon Sep 17 00:00:00 2001 From: Johnson Denen Date: Sun, 23 Apr 2017 09:28:14 -0400 Subject: Group API endpoint function with mastodon-http --- lisp/mastodon-toot.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisp/mastodon-toot.el') 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 -- cgit v1.2.3