diff options
author | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-11-10 04:04:00 -0800 |
---|---|---|
committer | Andy Wortman <ixineeringeverywhere@gmail.com> | 2017-11-10 04:04:59 -0800 |
commit | ca0762652e293ad9d35b03b537c02d218e44a13f (patch) | |
tree | 877f3c97781efd2a8a5a28e1803314575b04382c /src/display | |
parent | aa5f8ff4bce898907ffc0c0e2b7ea36d7f8c10b7 (diff) |
very hackily add notion of user credentials and PIN auth
also fix bug where cached user info takes precedence over (possibly
updated) api json user info
Diffstat (limited to 'src/display')
-rw-r--r-- | src/display/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/display/mod.rs b/src/display/mod.rs index 4480855..92fa9dd 100644 --- a/src/display/mod.rs +++ b/src/display/mod.rs @@ -180,6 +180,8 @@ pub fn paint(tweeter: &mut ::tw::TwitterCache) -> Result<(), std::io::Error> { lines } Infos::Thread(ids) => { + // TODO: group together thread elements by the same person a little + // better.. let mut tweets: Vec<Vec<String>> = ids.iter().rev().map(|x| into_display_lines(render_twete(x, tweeter), width)).collect(); let last = tweets.pop(); let mut lines = tweets.into_iter().fold(Vec::new(), |mut sum, lines| { |