branch: elpa/mastodon
commit 16e2ed0d3209fa4d448352cc1eca91fa20de18ce
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>
tl: base tags must respect CW state. FIX #839.
---
lisp/mastodon-tl.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index d0d56511ba..92a752f611 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -2310,7 +2310,14 @@ CW-EXPANDED means treat content warnings as unfolded."
(let ((tags (alist-get 'tags toot)))
;; FIXME: we also need to test here for normal body tags, and if
;; so, don't go ahead:
- (if tags (concat (mastodon-tl--base-tags tags body-tags)) ""))
+ (if tags
+ (let ((rendered (mastodon-tl--base-tags tags body-tags)))
+ (if (mastodon-tl--has-spoiler toot)
+ (propertize rendered
+ 'invisible t
+ 'mastodon-content-warning-body t)
+ rendered))
+ ""))
;; byline:
"\n"
(if no-byline