buzz
buzz copied to clipboard
fix(projects): show re-announced repos after kind:5 deletion
Summary
- Honor kind:5 repo deletions only when
event.created_at >= project.createdAt, so newer NIP-09 replaceable announcements at the same coordinate render again after re-announcement. - Allow deleting agent-owned repositories when the viewer owns the agent (
canDeleteProject/deleteProject), matching relayis_agent_ownerauth. - Add unit tests for the deletion filter and agent-owner delete gate.
Fixes #3760
Test plan
- [x]
pnpm test -- src/features/projects/projectDeletion.test.mjs src/features/projects/lib/projectsViewHelpers.test.mjs - [ ] Delete a repo, re-announce the same dtag, confirm it appears in Repositories
- [ ] Confirm agent owner sees Delete on agent-owned repos and publish succeeds
Made with Cursor
@tlongwell-block @wesbillman @wpfleger96 mind taking a look when you get a chance?
🔐 Codex Security Review
Status: review required for the current range.
The current range is
59328d5ae38a51a618dd2fddd7faf1343d42096f...4b93952bf2b84f7c3884081e10378053bcb7c078. A new review must complete for this exact range. When manual authorization is required, a Block organization member must comment exactly@buzz-security-review 4b93952bf2b84f7c3884081e10378053bcb7c078to authorize a new review. Any previous review applies only to its recorded range.
empty PR