aboutsummaryrefslogtreecommitdiff
path: root/src/display
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2017-10-16 23:24:52 -0700
committeriximeow <me@iximeow.net>2017-10-17 00:11:56 -0700
commitcae27540dba42917bacf1a235d4e4799cd099d02 (patch)
tree5b3c3a33afa92ed11fe62cf04abcf8553e34aa4b /src/display
parent1a4940f21c1783edb3ef91ff5b9f6858b7096348 (diff)
render quoted tweets
double-post bug if you are the author of the quoting tweet because you see the event AND your tweet in your feed
Diffstat (limited to 'src/display')
-rw-r--r--src/display/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/display/mod.rs b/src/display/mod.rs
index e66ac77..3a48454 100644
--- a/src/display/mod.rs
+++ b/src/display/mod.rs
@@ -34,6 +34,12 @@ pub trait Render {
impl Render for tw::events::Event {
fn render(self, tweeter: &::tw::TwitterCache) {
match self {
+ tw::events::Event::Quoted { user_id, twete_id } => {
+ println!("---------------------------------");
+ let user = tweeter.retrieve_user(&user_id).unwrap();
+ println!(" quoted_tweet : {} (@{})", user.name, user.handle);
+ render_twete(&twete_id, tweeter);
+ }
tw::events::Event::Deleted { user_id, twete_id } => {
if let Some(handle) = tweeter.retrieve_user(&user_id).map(|x| &x.handle) {
if let Some(_tweet) = tweeter.retrieve_tweet(&twete_id) {