aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dm.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2018-01-15 23:06:34 -0800
committeriximeow <me@iximeow.net>2018-01-15 23:06:34 -0800
commit00c0c0fd3cb8125a876bb96fab9c3e4b1854f4a8 (patch)
tree92d03b3b0651a44271c85f8679874157195fbe1a /src/commands/dm.rs
parentcc94ea2067ccbffa5ad3c598bf63468c125079d4 (diff)
fix dumb double-encoding of DM textHEADmaster
Diffstat (limited to 'src/commands/dm.rs')
-rw-r--r--src/commands/dm.rs3
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
)