aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-12 10:57:39 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-12 10:57:39 +0100
commit256fcd5c929ac395337746ea88d102304aaa02ab (patch)
treecf6293a03203a5f2ecf3b29bbbeb67a5bb7fe6f6 /lisp
parentafac39423a82a93fa14f9084e211bea0d1e6ce50 (diff)
add poll TODO
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-tl.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 80f9e02..3f5dd04 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1021,6 +1021,8 @@ this just means displaying toot client."
(defun mastodon-tl--format-poll-expiry (timestamp)
"Convert poll expiry TIMESTAMP into a descriptive string."
+ ;; TODO: this bugged when a timestamp was in the past
+ ;; despite the poll not being listed as expired
(let ((parsed (ts-human-duration
(ts-diff (ts-parse timestamp) (ts-now)))))
(cond ((> (plist-get parsed :days) 0)