diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-13 23:32:27 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-13 23:32:27 +0200 |
commit | b591685760865ad3da44e40d7e0546b11f73743d (patch) | |
tree | 4c9da2baff150a5f180c3bbf0a0a1ddd38d98824 | |
parent | 57d0f9f3626ea2bfac69725cbb1b67b9feeedeb0 (diff) |
update: thread-id only if thread
-rw-r--r-- | lisp/mastodon-tl.el | 7 |
1 files 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)) |