Skip to content

Commit

Permalink
Gab: update post API
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Jan 20, 2018
1 parent dd4570e commit 46ca65f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fie"
version = "0.6.0"
version = "0.6.1"
authors = ["Douman <[email protected]>"]
repository = "https://github.com/DoumanAsh/fie"
description = "Small and cute twitter app."
Expand Down
4 changes: 2 additions & 2 deletions src/api/gab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub mod payload {
body: &'a str,
pub reply_to: &'a str,
pub is_quote: u8,
pub is_html: u8,
pub nsfw: u8,
pub is_premium: u8,
pub _method: &'a str,
Expand All @@ -33,7 +34,6 @@ pub mod payload {
pub topic: Option<&'a str>,
pub share_twitter: bool,
pub share_facebook: bool,
pub is_replies_disabled: bool,
pub media_attachments: &'a [String]
}

Expand All @@ -43,6 +43,7 @@ pub mod payload {
body: message,
reply_to: "",
is_quote: 0,
is_html: 1,
nsfw: flags.nsfw as u8,
is_premium: 0,
_method: "post",
Expand All @@ -51,7 +52,6 @@ pub mod payload {
topic: None,
share_twitter: false,
share_facebook: false,
is_replies_disabled: false,
media_attachments
}
}
Expand Down

0 comments on commit 46ca65f

Please sign in to comment.