diff options
author | mousebot <mousebot@riseup.net> | 2021-10-22 13:00:04 +0200 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-10-22 13:00:04 +0200 |
commit | 635bf869e3f87ad182d0288f0947ae4bf842ff4d (patch) | |
tree | a03d32548bd88d7ff90ed5668df80aa683d00b61 /lisp/mastodon-http.el | |
parent | 9dbf6e52c5c9f53a5adcf54bf3f9bcdc51c1332c (diff) |
flycheck, autoloads, docstrings
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r-- | lisp/mastodon-http.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el index ea18da8..f092a2d 100644 --- a/lisp/mastodon-http.el +++ b/lisp/mastodon-http.el @@ -114,7 +114,7 @@ Authorization header is included by default unless UNAUTHENTICED-P is non-nil." (url-retrieve-synchronously url nil nil mastodon-http--timeout))))) (defun mastodon-http--read-file-as-string (filename) - "" + "Read a file FILENAME as a string. Used to generate image preview." (with-temp-buffer (insert-file-contents filename) (string-to-unibyte (buffer-string)))) @@ -170,7 +170,8 @@ Pass response buffer to CALLBACK function." (json-read-from-string json-string))) (defun mastodon-http--get-search-json (url query &optional param) - "Make GET request to URL, searching for QUERY and return JSON response." + "Make GET request to URL, searching for QUERY and return JSON response. +PARAM is any extra parameters to send with the request." (let ((buffer (mastodon-http--get-search url query param))) (with-current-buffer buffer (mastodon-http--process-json-search)))) |