From 2ab8a00fdd6a8e9386d08c83cb7318ceb3c3c31a Mon Sep 17 00:00:00 2001 From: Andy Wortman Date: Mon, 16 Oct 2017 23:24:52 -0700 Subject: 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 --- src/tw/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tw/mod.rs') diff --git a/src/tw/mod.rs b/src/tw/mod.rs index 9433e45..710bf59 100644 --- a/src/tw/mod.rs +++ b/src/tw/mod.rs @@ -241,6 +241,10 @@ impl TwitterCache { pub fn cache_api_event(&mut self, json: serde_json::Map, mut queryer: &mut ::Queryer) { /* don't really care to hold on to who fav, unfav, ... when, just pick targets out. */ match json.get("event").and_then(|x| x.as_str()) { + Some("quoted_tweet") => { + self.cache_api_tweet(json["target_object"].clone()); + self.cache_api_user(json["source"].clone()); + }, Some("favorite") => { self.cache_api_tweet(json["target_object"].clone()); self.cache_api_user(json["source"].clone()); -- cgit v1.1