From c5aefef00b841639f94c1e75bea2b4f3f9ff5ce5 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Thu, 12 Oct 2023 17:31:00 +0200 Subject: rename two search funs --- lisp/mastodon-search.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lisp') diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el index f1bc582..dc9570c 100644 --- a/lisp/mastodon-search.el +++ b/lisp/mastodon-search.el @@ -97,8 +97,8 @@ QUERY is the string to search." (defun mastodon-search--get-full-statuses-data (response) "For statuses list in RESPONSE, fetch and return full status JSON." - (let ((status-ids (mapcar #'mastodon-search--get-id-from-status response))) - (mapcar #'mastodon-search--fetch-full-status-from-id status-ids))) + (let ((status-ids (mapcar #'mastodon-search--id-from-status response))) + (mapcar #'mastodon-search--full-status-from-id status-ids))) (defun mastodon-search--view-trending (type print-fun) "Display a list of tags trending on your instance. @@ -271,12 +271,12 @@ user's profile note. This is also called by (alist-get 'spoiler_text status) (alist-get 'content status))) -(defun mastodon-search--get-id-from-status (status) +(defun mastodon-search--id-from-status (status) "Fetch the id from a STATUS returned by a search call to the server. We use this to fetch the complete status from the server." (alist-get 'id status)) -(defun mastodon-search--fetch-full-status-from-id (id) +(defun mastodon-search--full-status-from-id (id) "Fetch the full status with id ID from the server. This allows us to access the full account etc. details and to render them properly." -- cgit v1.2.3