From fec34bf00faf37b757bf6393c3042159b2fefe13 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Thu, 15 Jun 2023 14:24:05 +0200 Subject: handle nil value in poll expires_at attr. --- lisp/mastodon-tl.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lisp/mastodon-tl.el') diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 4d49dea..c947807 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1123,7 +1123,9 @@ LONGEST-OPTION is the option whose length determines the formatting." "")) 'face 'font-lock-comment-face) (let ((str (if (eq .expired :json-false) - (mastodon-tl--format-poll-expiry .expires_at) + (if (eq .expires_at nil) + "" + (mastodon-tl--format-poll-expiry .expires_at)) "Poll expired."))) (propertize str 'face 'font-lock-comment-face)) "\n")))) -- cgit v1.2.3