refactor: deduplicate broadcast methods via generic dispatcher #11

Closed
opened 2026-05-30 01:32:13 +00:00 by GKaszewski · 0 comments
Owner

Closed: The shared logic (prepare_broadcast, dispatch_deliveries) is already extracted into helpers. The 10 broadcast methods differ along 3 axes — audience (followers / single inbox / followers+extras), addressing (Public/FollowersOnly/Private), and activity construction. A generic dispatcher would save ~5 lines per method at the cost of parameterizing all three axes. Not worth the indirection.

**Closed:** The shared logic (`prepare_broadcast`, `dispatch_deliveries`) is already extracted into helpers. The 10 broadcast methods differ along 3 axes — audience (followers / single inbox / followers+extras), addressing (Public/FollowersOnly/Private), and activity construction. A generic dispatcher would save ~5 lines per method at the cost of parameterizing all three axes. Not worth the indirection.
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#11