Tag builder for blog posts at publish time

Code reviewEasy10 min

Your task

The publishing service cleans up each post's raw tags before it saves the post. A worker process publishes about 2,000 posts a night and calls build_tags once per post; the editor also calls it when an author adds tags to a post that already has some.

What do you flag before this ships?