bump k-ap 0.4.4, handle OutboundFollowAccepted w/ outbox backfill
All checks were successful
lint / lint (push) Successful in 17m36s
test / unit (push) Successful in 21m21s

This commit is contained in:
2026-07-11 10:48:23 +02:00
parent 09f5caefe7
commit 1e7886fb85
8 changed files with 45 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ postgres = { workspace = true }
postgres-search = { workspace = true }
postgres-federation = { workspace = true }
activitypub = { workspace = true }
k-ap = { version = "0.4.0", registry = "gitea" }
k-ap = { version = "0.4.4", registry = "gitea" }
serde_json = { workspace = true }
anyhow = { workspace = true }
nats = { workspace = true }

View File

@@ -70,6 +70,20 @@ impl k_ap::data::EventPublisher for KapPublisher {
follower_inbox_url,
})?,
),
FederationEvent::OutboundFollowAccepted {
local_user_id,
remote_actor_url,
outbox_url,
} => (
"federation.outbound_follow.accepted",
serde_json::to_vec(
&event_payload::EventPayload::FederationOutboundFollowAccepted {
local_user_id: local_user_id.to_string(),
remote_actor_url,
outbox_url,
},
)?,
),
FederationEvent::DeliveryFailed { inbox, error, .. } => {
tracing::warn!(%inbox, %error, "AP delivery failed permanently");
return Ok(());