diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-10 19:02:36 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-11-10 19:02:36 +0100 |
commit | 82c247728ab3ff71d92b689c8fd3bebe1c526331 (patch) | |
tree | 9f23218a7b19d49a41a0c6d8b8cc681df4fa7e03 /lisp | |
parent | 9642d2905cea340231aa7e7735f8088e641567e6 (diff) |
FIX: -tl--get-poll - add a fallback format string
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-tl.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index be3ac1e..93f2d0f 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -997,7 +997,12 @@ this just means displaying toot client." ((> (plist-get parsed :hours) 0) (format "%s hours, %s minutes left" (plist-get parsed :hours) (plist-get parsed :minutes))) ((> (plist-get parsed :minutes) 0) - (format "%s minutes left" (plist-get parsed :minutes)))))) + (format "%s minutes left" (plist-get parsed :minutes))) + (t ;; we failed to guess: + (format "%s days, %s hours, %s minutes left" + (plist-get parsed :days) + (plist-get parsed :hours) + (plist-get parsed :minutes)))))) (defun mastodon-tl--poll-vote (option) "If there is a poll at point, prompt user for OPTION to vote on it." |