aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index bf0bc7e..289eda1 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1131,23 +1131,27 @@ To disable showing the stats, customize
(when-let ((toot (mastodon-tl--toot-for-stats toot)))
(let* ((favourites-count (alist-get 'favourites_count toot))
(favourited (equal 't (alist-get 'favourited toot)))
+ (faves-prop (propertize (format "%s" favourites-count)
+ 'favourites-count favourites-count))
(boosts-count (alist-get 'reblogs_count toot))
(boosted (equal 't (alist-get 'reblogged toot)))
+ (boosts-prop (propertize (format "%s" boosts-count)
+ 'boosts-count boosts-count))
(replies-count (alist-get 'replies_count toot))
- (favourites (format "%s %s" favourites-count (mastodon-tl--symbol 'favourite)))
- (boosts (format "%s %s" boosts-count (mastodon-tl--symbol 'boost)))
+ (favourites (format "%s %s" faves-prop ;favourites-count
+ (mastodon-tl--symbol 'favourite)))
+ (boosts (format "%s %s" boosts-prop ;boosts-count
+ (mastodon-tl--symbol 'boost)))
(replies (format "%s %s" replies-count (mastodon-tl--symbol 'reply)))
(status (concat
(propertize favourites
'favourited-p favourited
'favourites-field t
- 'favourites-count favourites-count
'face font-lock-comment-face)
(propertize " | " 'face font-lock-comment-face)
(propertize boosts
'boosted-p boosted
'boosts-field t
- 'boosts-count boosts-count
'face font-lock-comment-face)
(propertize " | " 'face font-lock-comment-face)
(propertize replies