bump k-ap 0.4.4, handle OutboundFollowAccepted w/ outbox backfill
This commit is contained in:
@@ -13,7 +13,7 @@ application = { workspace = true }
|
||||
nats = { workspace = true }
|
||||
event-transport = { workspace = true }
|
||||
event-payload = { workspace = true }
|
||||
k-ap = { version = "0.4.0", registry = "gitea" }
|
||||
k-ap = { version = "0.4.4", registry = "gitea" }
|
||||
activitypub = { workspace = true }
|
||||
postgres = { workspace = true }
|
||||
postgres-federation = { workspace = true }
|
||||
|
||||
@@ -104,6 +104,22 @@ async fn main() {
|
||||
.await;
|
||||
result
|
||||
}
|
||||
EventPayload::FederationOutboundFollowAccepted {
|
||||
remote_actor_url,
|
||||
outbox_url,
|
||||
..
|
||||
} => {
|
||||
if let Some(outbox) = outbox_url {
|
||||
infra
|
||||
.raw_ap_service
|
||||
.import_remote_outbox(&outbox, &remote_actor_url)
|
||||
.await
|
||||
.map_err(|e| DomainError::Internal(e.to_string()))
|
||||
} else {
|
||||
tracing::info!(%remote_actor_url, "outbound follow accepted but no outbox URL — skipping backfill");
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
// ── domain events ──────────────────────────────────────
|
||||
p => match DomainEvent::try_from(p) {
|
||||
|
||||
Reference in New Issue
Block a user