From b591685760865ad3da44e40d7e0546b11f73743d Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Fri, 13 Oct 2023 23:32:27 +0200 Subject: update: thread-id only if thread --- lisp/mastodon-tl.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 7432f2d..a45b2fe 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -2583,12 +2583,13 @@ This location is defined by a non-nil value of (defun mastodon-tl--update () "Update timeline with new toots." (interactive) + ;; FIXME: handle update for search and trending buffers (let* ((endpoint (mastodon-tl--endpoint)) - (update-function (mastodon-tl--update-function)) - (thread-id (mastodon-tl--property 'toot-id))) + (update-function (mastodon-tl--update-function))) ;; update a thread, without calling `mastodon-tl--updated-json': (if (mastodon-tl--buffer-type-eq 'thread) - (funcall update-function thread-id) + (let ((thread-id (mastodon-tl--property 'toot-id))) + (funcall update-function thread-id)) ;; update other timelines: (let* ((id (mastodon-tl--newest-id)) (params (mastodon-tl--update-params)) -- cgit v1.2.3