From 00c0c0fd3cb8125a876bb96fab9c3e4b1854f4a8 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 15 Jan 2018 23:06:34 -0800 Subject: fix dumb double-encoding of DM text --- src/commands/dm.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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::(); - 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 ) -- cgit v1.1