chore: upgrade k-ap to 0.4.0
Some checks failed
CI / Check / Test (push) Has been cancelled

Map new fetched_at field in RemoteActor for postgres and sqlite adapters.
This commit is contained in:
2026-05-30 03:00:44 +02:00
parent 7456a18fc9
commit 14066ea469
6 changed files with 26 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ sqlx = { version = "0.8.6", features = [
"chrono",
] }
activitypub = { workspace = true }
k-ap = { version = "0.3.1", registry = "gitea" }
k-ap = { version = "0.4.0", registry = "gitea" }
domain = { workspace = true }
uuid = { workspace = true }
chrono = { workspace = true }

View File

@@ -65,10 +65,11 @@ fn pg_remote_actor(row: &sqlx::postgres::PgRow, url_col: &str) -> RemoteActor {
})
})
.unwrap_or_default(),
fetched_at: row.try_get("fetched_at").ok(),
}
}
const PG_ACTOR_COLS: &str = "a.handle, a.inbox_url, a.shared_inbox_url, a.display_name, a.avatar_url, a.outbox_url, a.bio, a.banner_url, a.followers_url, a.following_url, a.also_known_as";
const PG_ACTOR_COLS: &str = "a.handle, a.inbox_url, a.shared_inbox_url, a.display_name, a.avatar_url, a.outbox_url, a.bio, a.banner_url, a.followers_url, a.following_url, a.also_known_as, a.fetched_at";
#[async_trait]
impl FollowRepository for PostgresFederationRepository {