From 4db6e78d5858d6858631a78d786285dca18d68d9 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Thu, 22 Aug 2024 11:16:21 +0200 Subject: fix return val of --report-build-params when no rules cited --- lisp/mastodon-tl.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 2c1ef43..b3f0506 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -2610,7 +2610,8 @@ ACCOUNT-ID, COMMENT, ITEM-ID, FORWARD-P, CAT, and RULES are all from ,(when item-id `("status_ids[]" . ,item-id)) ,(when forward-p `("forward" . ,forward-p)) ,(when cat `("category" . ,cat)))))) - (when rules + (if (not rules) + params (let ((alist (mastodon-http--build-array-params-alist "rule_ids[]" rules))) (append alist params))))) -- cgit v1.2.3