Trigger all diff-specific functions using the wikipage.diff hook in the ext.thanks.corethank
Closed, ResolvedPublicFeature

Description

I propose that the reloadThankedState function in ext.thanks.corethank.js should also be triggered via mw.hook( 'wikipage.diff' ), in the same way as the addActionToLinks function.

This would improve extensibility and allow reuse in scripts that dynamically load diffs, such as my tool: Instant Diffs.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Aklapper changed the subtype of this task from "Bug Report" to "Feature Request".Jun 1 2025, 11:11 AM
Aklapper removed a project: Web-Team.

Change #1226764 had a related patch set uploaded (by Prashant_32194; author: Prashant_32194):

[mediawiki/extensions/Thanks@master] Thanks: run reloadThankedState on wikipage.diff

https://gerrit.wikimedia.org/r/1226764

Change #1226764 had a related patch set uploaded (by Pppery; author: Prashant_32194):

[mediawiki/extensions/Thanks@master] Thanks: run reloadThankedState on wikipage.diff

https://gerrit.wikimedia.org/r/1226764

Change #1226764 merged by jenkins-bot:

[mediawiki/extensions/Thanks@master] Thanks: run reloadThankedState on wikipage.diff

https://gerrit.wikimedia.org/r/1226764