diff options
author | iximeow <me@iximeow.net> | 2018-01-15 23:06:34 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2018-01-15 23:06:34 -0800 |
commit | 00c0c0fd3cb8125a876bb96fab9c3e4b1854f4a8 (patch) | |
tree | 92d03b3b0651a44271c85f8679874157195fbe1a /src | |
parent | cc94ea2067ccbffa5ad3c598bf63468c125079d4 (diff) |
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/dm.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands/dm.rs b/src/commands/dm.rs index f6fcbfd..4a7787c 100644 --- a/src/commands/dm.rs +++ b/src/commands/dm.rs @@ -39,12 +39,11 @@ fn dm(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer, displ handle_chars }.into_iter().collect::<String>(); - let encoded = ::url_encode(dm_text); let result = match tweeter.current_profile() { Some(user_profile) => { queryer.do_api_post( DM_CREATE_URL, - &vec![("text", &encoded), ("screen_name", &normalized_handle)], + &vec![("text", &dm_text), ("screen_name", &normalized_handle)], &tweeter.app_key, &user_profile.creds ) |