refactor: deduplicate broadcast methods via generic dispatcher #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.