diff options
author | Johnson Denen <johnson.denen@gmail.com> | 2017-04-23 09:28:14 -0400 |
---|---|---|
committer | Johnson Denen <johnson.denen@gmail.com> | 2017-04-23 11:09:06 -0400 |
commit | cf814e11bdb9c3f7a8b4aeed61d429a28a4d66cb (patch) | |
tree | 459183e386e4136efa476d20e82f9f89351d6d71 /lisp/mastodon-tl.el | |
parent | 993fbec64edf128ba9e5a1aa61f93c385fe3be31 (diff) |
Group API endpoint function with mastodon-http
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 6 |
1 files changed, 3 insertions, 3 deletions
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 |