aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-10-14 15:32:30 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-10-14 17:15:46 +0200
commit17bcc1ff7659b4eb6845a564a094bb3cae4fadd9 (patch)
tree7dcc1538302130f410073eba04f66d51f24bf77c
parent9b6769040e55b1c6372ee38266af42f92edf8a9c (diff)
byline: help echo timestamps in numbers
-rw-r--r--lisp/mastodon-tl.el15
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 2e0588f..81be479 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -781,12 +781,15 @@ BASE-TOOT is JSON for the base toot, if any."
(funcall action-byline toot)
" "
;; timestamp:
- (propertize
- (format-time-string mastodon-toot-timestamp-format parsed-time)
- 'timestamp parsed-time
- 'display (if mastodon-tl--enable-relative-timestamps
- (mastodon-tl--relative-time-description parsed-time)
- parsed-time))
+ (let ((ts (format-time-string
+ mastodon-toot-timestamp-format parsed-time)))
+ (propertize ts
+ 'timestamp parsed-time
+ 'display
+ (if mastodon-tl--enable-relative-timestamps
+ (mastodon-tl--relative-time-description parsed-time)
+ parsed-time)
+ 'help-echo ts))
;; detailed:
(when detailed-p
(let* ((app (alist-get 'application toot))