Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
warn: Hack to restore user talk link after rollback
The old, static-page rollback system was replaced by a AJAX version which no longer displays the confirmation page. Instead, a mw.notify popup is shown if the rollback is successful. Unfortunately, there is no good way to hook into the rollback success logic, so I had to come up with this awful hack. It replaces the mw.notify function with an override, which adds a link to the talk page of the user whose edits are being reverted when it detects that a rollback success message is being displayed. Hopefully we won't need to keep this around for too long... See Phabricator tasks T88044 and T136375 for more info. Also a minor punctuation fix.
- Loading branch information
Showing
1 changed file
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f53706a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atlight Is this still needed? Just discovering this, and from the VPT archive it seems the issue was pushed back the day after this commit. mwRollback doesn't happen in-place (though some scripts do enable it) with or without twinkle, so I don't think this is necessary?
f53706a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to say, I have no recollection of writing this at all. Feel free to remove the mw.notify override if it is no longer applicable. Presumably the punctuation fix in the warn module can stay though.