Automatically Select Topic Category Based on Post Category?

Would similar code work for mapping wp_categories onto discourse_tags?

I’m living the “categories are walls” life :sunglasses: