aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2017-10-21 14:02:37 -0700
committeriximeow <me@iximeow.net>2017-10-21 14:02:37 -0700
commit70cf5cc0d6e60706019f60dcda6bfa4baa959bf4 (patch)
tree3c7c87923a26a3d3b8482e6c1214c194670cbd3e /src/commands
parentaa3c4e239f4932de1d89a03bd6c9103957199dbf (diff)
fix bug with @s not going through in conversations
split included @, meaning no handle started with @, so get_mentions() returned empty vec
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/twete.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/twete.rs b/src/commands/twete.rs
index a66d5eb..c399df1 100644
--- a/src/commands/twete.rs
+++ b/src/commands/twete.rs
@@ -95,7 +95,7 @@ fn rep(line: String, tweeter: &mut tw::TwitterCache, queryer: &mut Queryer) {
if let Some(twete) = tweeter.retrieve_tweet(&TweetId::Bare(inner_twid)) {
// get handles to reply to...
let author_handle = tweeter.retrieve_user(&twete.author_id).unwrap().handle.to_owned();
- let mut ats: Vec<String> = twete.get_mentions().into_iter().map(|x| x.to_owned()).collect(); //std::collections::HashSet::new();
+ let mut ats: Vec<String> = twete.get_mentions(); //std::collections::HashSet::new();
/*
for handle in twete.get_mentions() {
ats.insert(handle);