aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-08-19 10:19:05 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-08-19 10:22:32 +0200
commit5c8ec25bea01223aa37f5291bad560c0c2e6f806 (patch)
treeadaecc12feec8681953233606b98742469d7df2e /lisp
parent925c26eefb5fccebba786b7232fd8e107246ed18 (diff)
use bookmark emoji if possible
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-tl.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 378b98c..d5a893d 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -547,7 +547,10 @@ By default it is `mastodon-tl--byline-boosted'"
(when faved
(mastodon-tl--format-faved-or-boosted-byline "F"))
(when bookmarked
- (mastodon-tl--format-faved-or-boosted-byline "K")))
+ (mastodon-tl--format-faved-or-boosted-byline
+ (if (fontp (char-displayable-p #10r128278))
+ "🔖"
+ "K"))))
(propertize
(concat
;; we propertize help-echo format faves for author name
@@ -583,10 +586,11 @@ LETTER is a string, F for favourited, B for boosted, or K for bookmarked."
"favourited")
((equal letter "B")
"boosted")
- ((equal letter "K")
+ ((equal letter (or "🔖" "K"))
"bookmarked"))))
(format "(%s) "
(propertize letter 'face 'mastodon-boost-fave-face
+ ;; emojify breaks this for 🔖:
'help-echo (format "You have %s this status."
help-string)))))