Migrated from: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/865
Narrative
As a developer, I want to be able to tell whether an image is about to be nuked, so that I am able to warn users
Acceptance Criteria
{{ nuke }} is used to display a deletion link which is only visible to administrators, with the deletion link preloaded. It is also used by tools as the StockPhoto gadget to determine that an image should be used with caution.
- Detect the fact that {{nuke}} (or possibly any template emitting the .nuke class) is used on an image
- Parse the suggested deletion reason
- Return this in the API as a warning
Related Bugs
Related Stories
- #866 Do not show reuse panel for images which are about to be deleted