From 6ae42e67d9da36f6c2e1356acba30a3a62112bc7 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 4 Aug 2025 08:20:30 +0100 Subject: fix: `t` tag `revision-root` ~> `root-revision` NIP-34 specifies patch revisions should have a `t` tag of `root-revision` whereas we have been using `revision-root`. this fixes it and and handles events created with the incorrect tag. --- tests/git_remote_nostr/push.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/git_remote_nostr/push.rs') diff --git a/tests/git_remote_nostr/push.rs b/tests/git_remote_nostr/push.rs index a137da5..2afadf9 100644 --- a/tests/git_remote_nostr/push.rs +++ b/tests/git_remote_nostr/push.rs @@ -1688,7 +1688,11 @@ async fn force_push_creates_proposal_revision() -> Result<()> { let revision_root_patch = new_events .iter() - .find(|e| e.tags.iter().any(|t| t.as_slice()[1].eq("revision-root"))) + .find(|e| { + e.tags + .iter() + .any(|t| ["revision-root", "root-revision"].contains(&t.as_slice()[1].as_str())) + }) .unwrap(); assert_eq!( -- cgit v1.2.3