[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon f152b11732 08/18: separate thread-do function
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon f152b11732 08/18: separate thread-do function |
Date: |
Thu, 21 Nov 2024 13:00:18 -0500 (EST) |
branch: elpa/mastodon
commit f152b11732febdbe7ee3e82db8f7ae8b94bfd56b
Author: marty hiatt <martianhiatus@disroot.org>
Commit: marty hiatt <martianhiatus@disroot.org>
separate thread-do function
---
lisp/mastodon-tl.el | 8 ++++++--
lisp/mastodon.el | 2 +-
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 799b54b1fa..225dfd3f16 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -2336,8 +2336,12 @@ UNFOLDED STATE is a boolean of whether the thread (we are
reloading) is fully unfolded or folded, i.e. via
`mastodon-tl--toggle-spoiler-in-thread'."
(interactive)
- ;; no toot-at-point macro here as we can call this programmatically, eg from
- ;; `mastodon-url-lookup'
+ (mastodon-toot--with-toot-item
+ (mastodon-tl--thread-do thread-id unfolded-state)))
+
+(defun mastodon-tl--thread-do (&optional thread-id unfolded-state)
+ "Load a thread.
+Non-interactive version, so we can call it programmatically and not crash into
`mastodon-toot--with-toot-item'."
;; this function's var must not be id as the above macro binds id and even
;; if we provide the arg (e.g. url-lookup), the macro definition overrides
;; it, making the optional arg unusable!
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index c13c3ba349..89ce8f189b 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -432,7 +432,7 @@ If FORCE, do a lookup regardless of the result of
`mastodon--fedi-url-p'."
(let* ((statuses (assoc 'statuses response))
(status (seq-first (cdr statuses)))
(status-id (alist-get 'id status)))
- (mastodon-tl--thread status-id)))
+ (mastodon-tl--thread-do status-id)))
((not (seq-empty-p (alist-get 'accounts response)))
(let* ((accounts (assoc 'accounts response))
(account (seq-first (cdr accounts))))
- [nongnu] elpa/mastodon updated (31557be472 -> cf64163130), ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon 37bf064242 01/18: with-toot-item: no-move arg needed!, ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon 62b973fde6 03/18: spoiler invis: fix respect of server setting, ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon 32963739da 02/18: unfold post: only get cw-invis when cw-range, ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon 6977dbbf5f 13/18: autoload with-toot-item macro, ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon ecb3b3dd69 07/18: profile.el: get-toot-author wrap in toot macro, ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon f9c7ad1a89 16/18: remove with-toot-item from --thread., ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon cf64163130 18/18: Merge branch 'develop', ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon de40a8d6cc 17/18: disable grouped notifs by default, so we don't break incompat instances, ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon 4d5b51ee72 15/18: check instance version for grouped-notifs, ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon f152b11732 08/18: separate thread-do function,
ELPA Syncer <=
- [nongnu] elpa/mastodon 2af648cb28 04/18: try to respect thread CW fold status on update/more. #619., ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon 5b13b69209 10/18: three-way state for thread folded status. #620 (wip), ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon 4c29f39c3a 05/18: readme typo, ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon 5c8c559105 12/18: custom grouped notifs names count. + flychecks. FIX #603, ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon 36cfa5a68e 11/18: FIX #620. fetch thread-folded from buffer-spec in --thread, no arg., ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon 9f3e5d71af 09/18: thread fall back to setting if no unfolded-state. #620 (not fixed), ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon 6112232a7a 14/18: check instance version for grouped-notifs, ELPA Syncer, 2024/11/21
- [nongnu] elpa/mastodon 5c54f95aa8 06/18: foll req: use display name if poss for action str, ELPA Syncer, 2024/11/21