aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2017-10-16 23:24:08 -0700
committeriximeow <me@iximeow.net>2017-10-16 23:24:08 -0700
commit1a4940f21c1783edb3ef91ff5b9f6858b7096348 (patch)
tree91e121c3c73eb4d125318e511a9fcc61755ca108 /src
parent8609668e319db209120a0e0e144fbb0b9ad4be8b (diff)
do not include quoted tweet author in replies
mirrors typical twitter use
Diffstat (limited to 'src')
-rw-r--r--src/commands/twete.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/twete.rs b/src/commands/twete.rs
index ecc3f98..f1f19cf 100644
--- a/src/commands/twete.rs
+++ b/src/commands/twete.rs
@@ -108,9 +108,9 @@ fn rep(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) {
ats.insert(1, rt_author_handle);
}
if let Some(qt_tweet) = twete.quoted_tweet_id.to_owned().and_then(|id| tweeter.retrieve_tweet(&id)) {
- 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 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);