From bddc7f4d0ec62ec00ad51551d1418a6d454d62d4 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 3 Jan 2024 16:26:46 +0000 Subject: [PATCH] When caching a status, cache its reblog too. That's another whole status, which we should be able to look up. --- src/client.rs | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.30.2