When someone revert file to older version, in edit history it appears as a new upload, not classic MediaWiki-style file revert.
Example: https://commons.wikimedia.org/w/index.php?title=File:Internet_Explorer_9_icon.svg&action=history
Description
Details
- Reference
- bz58209
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Add separate log action for file reverts | mediawiki/core | master | +26 -8 |
Event Timeline
(In reply to comment #2)
I guess you want a notification to come up when a file is reverted?
First of all, but this action just should follow with MediaWiki-revert method:
''Undid revision 123456789 by User (talk)''
not
''User uploaded a new version of File:xxx''
You see, it shouldn't appear as new upload, but a revert.
I guess this bug is even more general? I did a quick test and the 'upload/revert'-actions do not show up (c.f. https://www.mediawiki.org/wiki/API:Logevents)
Merging comment 1 from bug 30197 (Unused Log upload/revert):
As current type is upload/overwrite used for file reverts. But $wgLogActions
has an entry for that, that should used when reverting a file, that is right.
Change 463819 had a related patch set uploaded (by MGChecker; owner: MGChecker):
[mediawiki/core@master] Add separate log action for file reverts
@aaron, @Bawolff, @Umherirrender As you are listed as maintainers for Multimedia and Logging, I would love this to be reviewed by you.
Change 463819 merged by jenkins-bot:
[mediawiki/core@master] Add separate log action for file reverts