fix: treat fetched_at=None as stale, bump 0.4.4

This commit is contained in:
2026-07-11 10:37:11 +02:00
parent 00ec90fb03
commit 6e1e1357fb
4 changed files with 14 additions and 3 deletions

View File

@@ -39,7 +39,10 @@ impl ActivityPubService {
let age = chrono::Utc::now().signed_duration_since(t);
age < chrono::Duration::from_std(data.actor_cache_ttl).unwrap_or_default()
})
.unwrap_or(true);
.unwrap_or_else(|| {
tracing::debug!(actor_url, "fetched_at is None, treating as stale — consider populating fetched_at in get_remote_actor()");
false
});
if is_fresh {
return Ok(cached);
}