From: Simon Tatham Date: Wed, 3 Jan 2024 16:26:46 +0000 (+0000) Subject: When caching a status, cache its reblog too. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=bddc7f4d0ec62ec00ad51551d1418a6d454d62d4;p=mastodonochrome.git When caching a status, cache its reblog too. That's another whole status, which we should be able to look up. --- diff --git a/src/client.rs b/src/client.rs index b9e0589..fd1f667 100644 --- a/src/client.rs +++ b/src/client.rs @@ -318,6 +318,9 @@ impl Client { fn cache_status(&mut self, st: &Status) { self.cache_account(&st.account); self.statuses.insert(st.id.to_string(), st.clone()); + if let Some(ref sub) = st.reblog { + self.statuses.insert(sub.id.to_string(), *sub.clone()); + } } fn cache_notification(&mut self, n: &Notification) {