branch: elpa/fedi
commit cc3d89f923c3fbf040691b769b5dcf2264fc1707
Author: marty hiatt <martianhiatus [a t] riseup [d o t] net>
Commit: marty hiatt <martianhiatus [a t] riseup [d o t] net>
--update-status field: propertize item only
---
fedi-post.el | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/fedi-post.el b/fedi-post.el
index f97798e48a4..717e3986a1c 100644
--- a/fedi-post.el
+++ b/fedi-post.el
@@ -433,12 +433,19 @@ This is how mastodon does it."
(add-text-properties (car region) (cdr region)
(list 'display
(if (eval .item-var)
- (format (concat (capitalize .name)
- ": %s ⋅ ")
- (eval .item-var))
+ (format
+ (if .no-label
+ (concat
+ (propertize "%s"
+ 'face .face)
+ " ⋅ ")
+ (concat (capitalize .name)
+ ": "
+ (propertize "%s"
+ 'face .face)))
+ (eval .item-var))
"")
- 'face (or .item-face
- 'fedi-post-docs-face))))))
+ 'face 'fedi-post-docs-face)))))
(defun fedi-post--update-status-fields (&rest _args)
"Update the status fields in the header based on the current state."