0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 06:24:48 +08:00
discourse/plugins/discourse-affiliate
Régis Hanol f0d344d11d
FIX: Apply affiliate links to localized posts (#41770)
Previously, affiliate link rewriting only ran via the
`:post_process_cooked` event, 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
2026-07-16 16:27:55 +02:00
..
assets/javascripts/discourse/initializers
config
db/migrate
lib FIX: Apply affiliate links to localized posts (#41770) 2026-07-16 16:27:55 +02:00
spec FIX: Apply affiliate links to localized posts (#41770) 2026-07-16 16:27:55 +02:00
package.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00
plugin.rb FIX: Apply affiliate links to localized posts (#41770) 2026-07-16 16:27:55 +02:00
README.md
tsconfig.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00

discourse-affiliate

The Discourse Affiliate plugin can help you monetize your Discourse forum. When users create links and other users click through those links and buy products from Amazon, they earn referral fees.

Official documentation at https://meta.discourse.org/t/discourse-affiliate-plugin/101937

Issues

If you have issues or suggestions for the plugin, please bring them up on Discourse Meta.

License

MIT