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-tl.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lisp/mastodon-tl.el') diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 3944084..a7ab9da 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -157,7 +157,7 @@ Return value from boosted content if available." ;; Look into the JSON returned here by Local (defun mastodon-tl--updated-json (timeline id) "Return JSON for TIMELINE since ID." - (let ((url (mastodon--api-for (concat "timelines/" + (let ((url (mastodon-http--api (concat "timelines/" timeline "?since_id=" (number-to-string id))))) @@ -179,7 +179,7 @@ Return value from boosted content if available." "Open thread buffer for toot under `point'." (interactive) (let* ((id (number-to-string (mastodon-tl--property 'toot-id))) - (url (mastodon--api-for (format "statuses/%s/context" id))) + (url (mastodon-http--api (format "statuses/%s/context" id))) (buffer (format "*mastodon-thread-%s*" id)) (toot (mastodon-tl--property 'toot-json)) (context (mastodon-http--get-json url))) @@ -205,7 +205,7 @@ Return value from boosted content if available." (defun mastodon-tl--get (timeline) "Display TIMELINE in buffer." - (let* ((url (mastodon--api-for (concat "timelines/" timeline))) + (let* ((url (mastodon-http--api (concat "timelines/" timeline))) (buffer (concat "*mastodon-" timeline "*")) (json (mastodon-http--get-json url))) (with-output-to-temp-buffer buffer -- cgit v1.2.3