From e30e785936f15490dc2bc44fa034e0f0f7c22842 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Thu, 16 Jul 2026 09:56:54 +0200 Subject: [PATCH] bump k-ap to 0.4.6, add nodeinfo metadata --- Cargo.lock | 4 ++-- crates/adapters/activitypub/Cargo.toml | 2 +- crates/adapters/activitypub/src/lib.rs | 4 ++++ crates/adapters/postgres-federation/Cargo.toml | 2 +- crates/adapters/sqlite-federation/Cargo.toml | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 36da290..4998029 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2892,9 +2892,9 @@ dependencies = [ [[package]] name = "k-ap" -version = "0.4.4" +version = "0.4.6" source = "sparse+https://git.gabrielkaszewski.dev/api/packages/GKaszewski/cargo/" -checksum = "daec6ce514e07fc9c6e39a780f3144292534008a2c16c1645f131fad877c7894" +checksum = "97c1d000cf9c80891973bb5f5adb96c90e0aea9c929c7fa6cb794ad28938bc50" dependencies = [ "activitypub_federation", "anyhow", diff --git a/crates/adapters/activitypub/Cargo.toml b/crates/adapters/activitypub/Cargo.toml index 869e2fa..e7d0186 100644 --- a/crates/adapters/activitypub/Cargo.toml +++ b/crates/adapters/activitypub/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2024" [dependencies] -k-ap = { version = "0.4.4", registry = "gitea" } +k-ap = { version = "0.4.6", registry = "gitea" } domain = { workspace = true } axum = { workspace = true } serde = { workspace = true } diff --git a/crates/adapters/activitypub/src/lib.rs b/crates/adapters/activitypub/src/lib.rs index 708790e..cadbe68 100644 --- a/crates/adapters/activitypub/src/lib.rs +++ b/crates/adapters/activitypub/src/lib.rs @@ -141,6 +141,10 @@ pub async fn wire(deps: ActivityPubDeps) -> anyhow::Result { .event_publisher(fed_event_bridge) .allow_registration(allow_registration) .software_name("movies-diary") + .nodeinfo_metadata(serde_json::json!({ + "nodeName": "movies-diary", + "nodeDescription": "A federated movie diary" + })) .debug(federation_debug) .build() .await?, diff --git a/crates/adapters/postgres-federation/Cargo.toml b/crates/adapters/postgres-federation/Cargo.toml index e5ff03d..932c3a1 100644 --- a/crates/adapters/postgres-federation/Cargo.toml +++ b/crates/adapters/postgres-federation/Cargo.toml @@ -13,7 +13,7 @@ sqlx = { version = "0.8.6", features = [ ] } activitypub = { workspace = true } adapter-common = { workspace = true } -k-ap = { version = "0.4.4", registry = "gitea" } +k-ap = { version = "0.4.6", registry = "gitea" } domain = { workspace = true } uuid = { workspace = true } chrono = { workspace = true } diff --git a/crates/adapters/sqlite-federation/Cargo.toml b/crates/adapters/sqlite-federation/Cargo.toml index e1fc328..ff6d398 100644 --- a/crates/adapters/sqlite-federation/Cargo.toml +++ b/crates/adapters/sqlite-federation/Cargo.toml @@ -7,7 +7,7 @@ edition = "2024" sqlx = { workspace = true } activitypub = { workspace = true } adapter-common = { workspace = true } -k-ap = { version = "0.4.4", registry = "gitea" } +k-ap = { version = "0.4.6", registry = "gitea" } domain = { workspace = true } anyhow = { workspace = true } serde_json = { workspace = true }