chore: upgrade k-ap to 0.4.0
Some checks failed
test / unit (push) Has been cancelled
lint / lint (push) Has been cancelled

Map new fetched_at field in RemoteActor, read last_fetched_at from DB.
This commit is contained in:
2026-05-30 03:00:43 +02:00
parent 3357484bbf
commit 78daca0377
7 changed files with 17 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"
[dependencies]
k-ap = { version = "0.3.1", registry = "gitea" }
k-ap = { version = "0.4.0", registry = "gitea" }
domain = { workspace = true }
url = { workspace = true }
serde = { workspace = true }

View File

@@ -124,7 +124,7 @@ fn k_ap_actor_to_domain(a: k_ap::RemoteActor) -> DomainRemoteActor {
display_name: a.display_name,
avatar_url: a.avatar_url,
outbox_url: a.outbox_url,
last_fetched_at: chrono::Utc::now(),
last_fetched_at: a.fetched_at.unwrap_or_else(chrono::Utc::now),
bio: a.bio,
banner_url: a.banner_url,
also_known_as: a.also_known_as,