[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon 9f3e5d71af 09/18: thread fall back to setting if
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon 9f3e5d71af 09/18: thread fall back to setting if no unfolded-state. #620 (not fixed) |
Date: |
Thu, 21 Nov 2024 13:00:18 -0500 (EST) |
branch: elpa/mastodon
commit 9f3e5d71af6046e76f5c74af02bd7d5bb0fe25c9
Author: marty hiatt <martianhiatus@disroot.org>
Commit: marty hiatt <martianhiatus@disroot.org>
thread fall back to setting if no unfolded-state. #620 (not fixed)
---
lisp/mastodon-tl.el | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 225dfd3f16..47195a5ab3 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -2332,7 +2332,7 @@ view all branches of a thread."
(defun mastodon-tl--thread (&optional thread-id unfolded-state)
"Open thread buffer for toot at point or with THREAD-ID.
-UNFOLDED STATE is a boolean of whether the thread (we are
+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)
@@ -2340,8 +2340,13 @@ reloading) is fully unfolded or folded, i.e. via
(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'."
+ "Open thread buffer for toot at point or with THREAD-ID.
+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'.
+This is the 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!
@@ -2349,7 +2354,8 @@ Non-interactive version, so we can call it
programmatically and not crash into `
(type (mastodon-tl--field 'type
(mastodon-tl--property 'item-json
:no-move)))
;; if reloading and thread was fully unfolded, respect it:
- (mastodon-tl--expand-content-warnings unfolded-state))
+ (mastodon-tl--expand-content-warnings
+ (or unfolded-state mastodon-tl--expand-content-warnings)))
(if (or (string= type "follow_request")
(string= type "follow")) ; no can thread these
(user-error "No thread")
- [nongnu] elpa/mastodon f9c7ad1a89 16/18: remove with-toot-item from --thread., (continued)
- [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, 2024/11/21
- [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 <=
- [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