aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorAndy Wortman <ixineeringeverywhere@gmail.com>2017-10-27 01:23:05 -0700
committerAndy Wortman <ixineeringeverywhere@gmail.com>2017-10-27 01:23:05 -0700
commitbf7f5d32a7f05bb0a7bc19dcb443d3df439243ba (patch)
treef3123c3678085ca6bb9a679272e02efe0e427fff /src/commands
parentccccc6e1b2ebd62a35715f71c746f3a3b9c0b97e (diff)
better error handling in cases where event json changes
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/twete.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/commands/twete.rs b/src/commands/twete.rs
index b0530c8..eb21a15 100644
--- a/src/commands/twete.rs
+++ b/src/commands/twete.rs
@@ -124,11 +124,6 @@ fn rep(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) {
ats.remove_item(&rt_author_handle);
ats.insert(1, rt_author_handle);
}
- if let Some(qt_tweet) = twete.quoted_tweet_id.and_then(|id| tweeter.retrieve_tweet(&TweetId::Twitter(id))).map(|x| x.clone()) {
- // let qt_author_handle = tweeter.retrieve_user(&qt_tweet.author_id).unwrap().handle.to_owned();
- // ats.remove_item(&qt_author_handle);
- // ats.insert(1, qt_author_handle);
- }
//let ats_vec: Vec<&str> = ats.into_iter().collect();
//let full_reply = format!("{} {}", ats_vec.join(" "), reply);
let decorated_ats: Vec<String> = ats.into_iter().map(|x| format!("@{}", x)).collect();