Make posts unlisted

This commit is contained in:
asonix 2020-10-22 13:38:55 -05:00
parent 7158574ce7
commit 0e764c837f

View file

@ -62,6 +62,7 @@ struct Token {
#[derive(serde::Serialize)]
struct Status {
status: String,
visibility: &'static str,
}
impl Mastodon {
@ -164,6 +165,7 @@ impl State {
let res = self.client.post(url.as_str())
.form(&Status {
status: name,
visibility: "unlisted",
})
.send()
.compat()