From f04ca74b2856bf4851b9e8b4166030eb8e959dc6 Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Fri, 1 Dec 2017 01:49:28 -0800 Subject: show json for DM, since fleshing that out is nextish on the to-do --- src/tw/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/tw/mod.rs b/src/tw/mod.rs index 737286d..6dbc259 100644 --- a/src/tw/mod.rs +++ b/src/tw/mod.rs @@ -881,6 +881,7 @@ fn handle_twitter_twete( tweeter: &mut TwitterCache, display_info: &mut DisplayInfo, _queryer: &mut ::Queryer) { + //display_info.recv(display::Infos::Text(vec![format!("{:?}", structure)])); let twete_id = structure["id_str"].as_str().unwrap().to_string(); tweeter.cache_api_tweet(serde_json::Value::Object(structure)); display_info.recv(display::Infos::Tweet(TweetId::Twitter(twete_id))); @@ -894,6 +895,7 @@ fn handle_twitter_dm( display_info: &mut DisplayInfo, _queryer: &mut ::Queryer) { // show DM + display_info.recv(display::Infos::Text(vec![format!("{:?}", structure)])); display_info.recv(display::Infos::DM(structure["direct_message"]["text"].as_str().unwrap().to_string())); } -- cgit v1.1