mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
The patch implementation was missing several critical tags required by NIP-34: 1. Added 'r' tag with earliest unique commit (euc) from repository announcement - This enables clients to subscribe to all patches for a specific repo - Queries the repository's kind 30617 event to get the euc value 2. Improved patch content format to follow git format-patch style - Includes proper From/Date/Subject headers - Lists all unique commits with author info and messages - Follows standard git patch format for better interoperability 3. Added commit-related tags for stable commit IDs: - 'commit' tag with current HEAD commit ID - 'parent-commit' tag with parent commit ID - 'committer' tag with name, email, timestamp, and timezone - Additional 'r' tag with commit ID for filtering 4. Query repository announcement for relay hints - Publishes patches to relays specified in the repo's 'relays' tags - Falls back to default relay if no announcement found These changes ensure patches are properly discoverable by other Nostr git clients and follow the complete NIP-34 specification for patch events (kind 1617).