[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon de2937d9fa 12/45: poll not toot arg for format-po
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon de2937d9fa 12/45: poll not toot arg for format-poll |
Date: |
Mon, 24 Jun 2024 10:01:51 -0400 (EDT) |
branch: elpa/mastodon
commit de2937d9fa1a35cbc05e1c3d0dd6856d393b4111
Author: marty hiatt <martianhiatus@riseup.net>
Commit: marty hiatt <martianhiatus@riseup.net>
poll not toot arg for format-poll
---
lisp/mastodon-tl.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index dc1f25140e..89d70a5963 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1232,9 +1232,9 @@ LONGEST-OPTION is the option whose length determines the
formatting."
(format "[%s votes]" (or (alist-get 'votes_count option)
"0"))))
-(defun mastodon-tl--format-poll (toot)
+(defun mastodon-tl--format-poll (poll)
"If TOOT includes a poll, return it as a formatted string."
- (let-alist (mastodon-tl--field 'poll toot) ; toot or reblog
+ (let-alist poll
(let* ((option-titles (mastodon-tl--map-alist 'title .options))
(longest-option (car (sort option-titles
(lambda (x y)
@@ -1454,7 +1454,8 @@ Runs `mastodon-tl--render-text' and fetches poll or
media."
(media-p (mastodon-tl--field 'media_attachments toot)))
(concat (mastodon-tl--render-text content toot)
(when poll-p
- (mastodon-tl--format-poll toot))
+ (mastodon-tl--format-poll
+ (mastodon-tl--field 'poll toot))) ;; toot or reblog
(when media-p
(mastodon-tl--media toot)))))
- [nongnu] elpa/mastodon updated (40971e1f1f -> c148911513), ELPA Syncer, 2024/06/24
- [nongnu] elpa/mastodon 2b426fb913 02/45: working max-id arg for hometimeline/reload, ELPA Syncer, 2024/06/24
- [nongnu] elpa/mastodon 9239f65226 07/45: set max-id in buffer spec also after reloading, ELPA Syncer, 2024/06/24
- [nongnu] elpa/mastodon de2937d9fa 12/45: poll not toot arg for format-poll,
ELPA Syncer <=
- [nongnu] elpa/mastodon 4aad54dcdf 10/45: get-poll > format-poll, ELPA Syncer, 2024/06/24
- [nongnu] elpa/mastodon ddcaf0e1b2 01/45: add max-id to buffer-spec, and set when calling tl--more, ELPA Syncer, 2024/06/24
- [nongnu] elpa/mastodon 373d19b6cc 15/45: display poll deets in help-echo for display fields flag., ELPA Syncer, 2024/06/24
- [nongnu] elpa/mastodon a1667687e3 18/45: index, ELPA Syncer, 2024/06/24
- [nongnu] elpa/mastodon 3303e85db9 11/45: display a POLL flag in compose buffer., ELPA Syncer, 2024/06/24
- [nongnu] elpa/mastodon 06627d5d3d 04/45: max-id arg for other -tl.el timelines, ELPA Syncer, 2024/06/24
- [nongnu] elpa/mastodon 13162773b6 06/45: max-id arg/params for (so far only plain) profile view, ELPA Syncer, 2024/06/24
- [nongnu] elpa/mastodon 638045a2b2 29/45: add remove-overlays to with-mastodon-buffer macro, ELPA Syncer, 2024/06/24
- [nongnu] elpa/mastodon 073ef68683 05/45: max-id arg/param for notifs-get, ELPA Syncer, 2024/06/24
- [nongnu] elpa/mastodon 06cbc031c7 03/45: index, ELPA Syncer, 2024/06/24