From d9d3bb07a65ee6350a3272d589e8298436eb34fb Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Tue, 27 Jun 2023 15:33:17 +0200 Subject: handle updating a single-toot view. FIX #476. --- lisp/mastodon-tl.el | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lisp/mastodon-tl.el') diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index aa52f82..f7f000b 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1689,8 +1689,16 @@ ID is that of the toot to view." (if (equal (caar toot) 'error) (message "Error: %s" (cdar toot)) (with-mastodon-buffer buffer #'mastodon-mode nil - (mastodon-tl--set-buffer-spec buffer (format "statuses/%s" id) nil) - (mastodon-tl--toot toot :detailed-p))))) + (mastodon-tl--set-buffer-spec buffer (format "statuses/%s" id) + #'mastodon-tl--update-toot) + (mastodon-tl--toot toot :detailed-p) + (goto-char (point-min)) + (mastodon-tl--goto-next-item))))) + +(defun mastodon-tl--update-toot (json) + "" + (let ((id (alist-get 'id json))) + (mastodon-tl--single-toot id))) (defun mastodon-tl--view-whole-thread () "From a thread view, view entire thread. -- cgit v1.2.3