branch: elpa/mastodon
commit 1a9578fe3624a9a6875b25ec1245dae7b82a4c8f
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>
poll: non-transient fix booleans. FIX #837 #838.
---
lisp/mastodon-toot.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index f96a6a8566..19b4727a00 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -934,8 +934,12 @@ to `emojify-user-emojis', and the emoji data is updated."
"poll[options][]"
(plist-get mastodon-toot-poll :options))
`(("poll[expires_in]" . ,(plist-get mastodon-toot-poll :expiry)))
- `(("poll[multiple]" . ,(symbol-name (plist-get mastodon-toot-poll
:multi))))
- `(("poll[hide_totals]" . ,(symbol-name (plist-get mastodon-toot-poll
:hide)))))))
+ `(("poll[multiple]" . ,(if (plist-get mastodon-toot-poll :multi)
+ "true"
+ "false")))
+ `(("poll[hide_totals]" . ,(if (plist-get mastodon-toot-poll :hide)
+ "true"
+ "false"))))))
;;; SEND TOOT FUNCTION