From aef6e1f4c0364789dc4cf08bde688a1db198e6b6 Mon Sep 17 00:00:00 2001 From: arne Date: Sat, 6 Jan 2024 11:25:28 +0100 Subject: [PATCH] Set default post visibility to public --- src/computersandblues/frantisek_kafka/samsa.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/computersandblues/frantisek_kafka/samsa.clj b/src/computersandblues/frantisek_kafka/samsa.clj index 8f8b1ff..9a263db 100644 --- a/src/computersandblues/frantisek_kafka/samsa.clj +++ b/src/computersandblues/frantisek_kafka/samsa.clj @@ -59,7 +59,8 @@ (defn send-toot! [text] (when (environment-setup?) (http/post (str (:mastodon-instance env) "/api/v1/statuses") - {:form-params {:status text} + {:form-params {:status text + :visiblity "public"} :headers {"Authorization" (str "Bearer " (:access-token env))}})) (log/info text))