aboutsummaryrefslogtreecommitdiff
path: root/src/commands/follow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/follow.rs')
-rw-r--r--src/commands/follow.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands/follow.rs b/src/commands/follow.rs
index bc767d5..cd046c6 100644
--- a/src/commands/follow.rs
+++ b/src/commands/follow.rs
@@ -19,7 +19,7 @@ fn unfl(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer, dis
let screen_name = line.trim();
let result = match tweeter.current_profile() {
Some(user_profile) => {
- queryer.do_api_post(&format!("{}?screen_name={}", FOLLOW_URL, screen_name), &tweeter.app_key, &user_profile.creds)
+ queryer.do_api_post(FOLLOW_URL, &vec![("screen_name", &screen_name)], &tweeter.app_key, &user_profile.creds)
},
None => Err("No logged in user to unfollow from".to_owned())
};
@@ -45,7 +45,8 @@ fn fl(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer, displ
format!(
"fl resp: {:?}",
queryer.do_api_post(
- &format!("{}?screen_name={}", UNFOLLOW_URL, screen_name),
+ UNFOLLOW_URL,
+ &vec![("screen_name", &screen_name)],
&tweeter.app_key,
&user_profile.creds
)