diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-10-14 15:32:30 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-10-14 17:15:46 +0200 |
commit | 17bcc1ff7659b4eb6845a564a094bb3cae4fadd9 (patch) | |
tree | 7dcc1538302130f410073eba04f66d51f24bf77c | |
parent | 9b6769040e55b1c6372ee38266af42f92edf8a9c (diff) |
byline: help echo timestamps in numbers
-rw-r--r-- | lisp/mastodon-tl.el | 15 |
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)) |