main ← fix-affiliate-links-on-localized-posts
merged 02:27PM - 16 Jul 26 UTC
Previously, affiliate link rewriting only ran via the `:post_process_cooked` eve…nt, which fires exclusively when baking a post's original cooked HTML — so readers viewing a translated post were served untagged links.
This change subscribes the same rewrite to the `:post_process_localized_cooked` event fired by `LocalizedCookedPostProcessor`, so translated posts get affiliate links too. Existing localizations pick up the tags on their next rebake, since the recook path re-runs the localized post processor.
Reported at https://meta.discourse.org/t/407688