diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-04 16:24:29 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-03-04 16:24:29 +0000 |
| commit | af016dd23101537ccc8ecd5a992bf3b7c6d3abe9 (patch) | |
| tree | 15284c3a1301ea738507beadd2687d4dd0d248b5 /src/lib/mod.rs | |
| parent | 293ef01e141846f7de5af2c8c6be9d6c694083fd (diff) | |
add NIP-21 content tags (q/p) to issues, comments, PRs and patches
- parse nostr: URI mentions in issue bodies, comment bodies, PR
descriptions, patch commit messages and cover letters
- npub/nprofile mentions produce p tags; note/nevent/naddr mentions
produce q tags per NIP-22
- naddr q tag value uses raw <kind>:<pubkey-hex>:<identifier> format
- nevent pubkey field populated from embedded author or local cache lookup
- dedup_tags() removes duplicate p tags and suppresses q tags whose
event-id is already covered by an existing e threading tag
- all parsing errors are non-fatal: invalid nostr: tokens are skipped
Diffstat (limited to 'src/lib/mod.rs')
| -rw-r--r-- | src/lib/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/mod.rs b/src/lib/mod.rs index f839e7f..9768343 100644 --- a/src/lib/mod.rs +++ b/src/lib/mod.rs | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | pub mod accept_maintainership; | 1 | pub mod accept_maintainership; |
| 2 | pub mod cli_interactor; | 2 | pub mod cli_interactor; |
| 3 | pub mod client; | 3 | pub mod client; |
| 4 | pub mod content_tags; | ||
| 4 | pub mod fetch; | 5 | pub mod fetch; |
| 5 | pub mod git; | 6 | pub mod git; |
| 6 | pub mod git_events; | 7 | pub mod git_events; |