aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-08-22 11:16:21 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-08-22 11:18:10 +0200
commit4db6e78d5858d6858631a78d786285dca18d68d9 (patch)
treec8a6f38f20ac05df6b23325a6644ff31fb1228be
parent377c2ecb0a423ff676f7f2a3695bcb7a7883df57 (diff)
fix return val of --report-build-params when no rules cited
-rw-r--r--lisp/mastodon-tl.el3
1 files changed, 2 insertions, 1 deletions
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)))))