diff options
author | iximeow <me@iximeow.net> | 2017-11-10 04:04:00 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2017-11-10 04:04:59 -0800 |
commit | 83107e0e93cad31152ce71b6a20da466d5216071 (patch) | |
tree | 877f3c97781efd2a8a5a28e1803314575b04382c /src/display | |
parent | c2c125a83cfdd3556df37f02907edcb1351d674b (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| { |