From a6edb42dfc653b6826b59b7f296e0d0c4ee74557 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 26 Nov 2025 08:45:16 +0000 Subject: fix: parsing maintainers from announcement event --- src/git/authorization.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/git') diff --git a/src/git/authorization.rs b/src/git/authorization.rs index 06672c8..2fe81b0 100644 --- a/src/git/authorization.rs +++ b/src/git/authorization.rs @@ -444,11 +444,16 @@ mod tests { ) -> Event { let mut tags = vec![Tag::custom(TagKind::d(), vec![identifier.to_string()])]; - // Add maintainers as p tags - for maintainer_keys in maintainers { + // Add maintainers as a single "maintainers" tag per NIP-34 + // Format: ["maintainers", "", "", ...] + if !maintainers.is_empty() { + let maintainer_pubkeys: Vec = maintainers + .iter() + .map(|k| k.public_key().to_hex()) + .collect(); tags.push(Tag::custom( - TagKind::p(), - vec![maintainer_keys.public_key().to_hex()], + TagKind::Custom("maintainers".into()), + maintainer_pubkeys, )); } -- cgit v1.2.3