emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/mastodon f9c7ad1a89 16/18: remove with-toot-item from --th


From: ELPA Syncer
Subject: [nongnu] elpa/mastodon f9c7ad1a89 16/18: remove with-toot-item from --thread.
Date: Thu, 21 Nov 2024 13:00:20 -0500 (EST)

branch: elpa/mastodon
commit f9c7ad1a894ad996c824388bdad343885fdb6002
Author: marty hiatt <martianhiatus@disroot.org>
Commit: marty hiatt <martianhiatus@disroot.org>

    remove with-toot-item from --thread.
---
 lisp/mastodon-tl.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index d9fac2a872..4a46cc27f8 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -89,7 +89,6 @@
 (autoload 'mastodon-media--process-full-sized-image-response "mastodon-media")
 (autoload 'mastodon-search--trending-statuses "mastodon-search")
 (autoload 'mastodon-search--format-heading "mastodon-search")
-(autoload 'mastodon-toot--with-toot-item "mastodon-toot" nil nil 'macro)
 (autoload 'mastodon-media--image-or-cached "mastodon-media")
 (autoload 'mastodon-toot--base-toot-or-item-json "mastodon-toot")
 (autoload 'mastodon-search--load-link-posts "mastodon-search")
@@ -2340,8 +2339,9 @@ UNFOLDED STATE is a boolean of whether the thread (that 
we are
 reloading) is fully unfolded or folded, i.e. via
 `mastodon-tl--toggle-spoiler-in-thread'."
   (interactive)
-  (mastodon-toot--with-toot-item
-   (mastodon-tl--thread-do thread-id)))
+  (if (not (eq 'toot (mastodon-tl--property 'item-type :no-move)))
+      (user-error "Looks like there's no toot at point?")
+    (mastodon-tl--thread-do thread-id)))
 
 (defun mastodon-tl--thread-do (&optional thread-id)
   "Open thread buffer for toot at point or with THREAD-ID.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]