diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-21 03:40:19 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-21 03:40:19 +0000 |
| commit | 8f7f0d87f238c490a6f1c6fdef3333e8d2f9e7af (patch) | |
| tree | 112d1652f66d96b55443478c8a85167c51b14249 /src/git/subprocess.rs | |
| parent | bdb45df8f38a427fa3062215edd1a85e15080eca (diff) | |
refactor: optimize is_referenced_by_accepted for addressable events
- Remove uppercase 'Q' tag (not in Nostr spec)
- Add support for addressable references in 'q' tags
- Optimize queries based on event type:
- Addressable events (kind >= 30000): only check a, A, q with coordinates
- Regular events: only check e, E, q with event IDs
- Handle addressable events without 'd' tag (empty identifier)
- Reduce query count from up to 6 to maximum 3 per event type
Diffstat (limited to 'src/git/subprocess.rs')
0 files changed, 0 insertions, 0 deletions