Extract shared inbox dedup logic from broadcast methods #17

Closed
opened 2026-07-25 11:18:15 +00:00 by GKaszewski · 0 comments
Owner

Severity: Medium

src/service/broadcast.rs: broadcast_create_note (lines 240-299) and broadcast_update_note (lines 303-351) are nearly identical — same inbox deduplication logic (lines 257-274 vs 318-335), same HashSet pattern, same early-return.

Extract into a shared helper function.

**Severity: Medium** `src/service/broadcast.rs`: `broadcast_create_note` (lines 240-299) and `broadcast_update_note` (lines 303-351) are nearly identical — same inbox deduplication logic (lines 257-274 vs 318-335), same HashSet pattern, same early-return. Extract into a shared helper function.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GKaszewski/k-ap#17