aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-10-25 12:28:23 +0200
committermousebot <mousebot@riseup.net>2021-10-25 12:28:23 +0200
commitf0c6f8a97280fa429c5e8b8a34a03fa887a44937 (patch)
treef30a39fd3ce1d561e103c3f7670de7dfb678b8f7 /lisp
parentf67558804e899306f6495c934bd25adff814d092 (diff)
echo faves, boosts, replies counts when in thread view
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-tl.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index a7767b8..b4e3ae2 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -721,6 +721,14 @@ takes a single function. By default it is
(mastodon-tl--byline toot author-byline action-byline))
'toot-id (cdr (assoc 'id toot))
'base-toot-id (mastodon-tl--toot-id toot)
+ 'help-echo (when (and mastodon-tl--buffer-spec
+ (string-match-p
+ "context"
+ (plist-get mastodon-tl--buffer-spec 'endpoint)))
+ (format "%s faves | %s boosts | %s replies"
+ (cdr (assoc 'favourites_count toot))
+ (cdr (assoc 'reblogs_count toot))
+ (cdr (assoc 'replies_count toot))))
'toot-json toot)
"\n")
(when mastodon-tl--display-media-p