You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixeswikimedia-gadgets#913, same basic issue as wikimedia-gadgets#627/wikimedia-gadgets#628: if a user has "Do not show page content below diffs" selected in Special:Preferences, wgRevisionId is set to 0 on diffs. While wikimedia-gadgets#628 took care of that for the links on diff pages themselves, trying to rollback from a contribs page was left unfixed. Those links load the diff page then `auto`matically revert, so will run into the same issue. This essentialy reverts back to the check before 3e5ec5b (wikimedia-gadgets#561), albeit by using `mw.util.getParamValue` rather than the no-longer-existing `Morebits.queryString.get` (wikimedia-gadgets#725).
Fixeswikimedia-gadgets#913, same basic issue as wikimedia-gadgets#627/wikimedia-gadgets#628: if a user has "Do not show page content below diffs" selected in Special:Preferences, wgRevisionId is set to 0 on diffs. While wikimedia-gadgets#628 took care of that for the links on diff pages themselves, trying to rollback from a contribs page was left unfixed. Those links load the diff page then `auto`matically revert, so will run into the same issue. This essentialy reverts back to the check before 3e5ec5b (wikimedia-gadgets#561), albeit by using `mw.util.getParamValue` rather than the no-longer-existing `Morebits.queryString.get` (wikimedia-gadgets#725).
Step to reproduce:
Related code:
https://github.com/azatoth/twinkle/blob/b0fab3cddeb61284a9dd136c6b149d47e80795a4/modules/twinklefluff.js#L90-L95
This is due to phab:T231744.
mw.config.get('wgRevisionId')
returns 0 when page content is unavailable (diffonly=1
).Suggestion:
Append
&diffonly=0
in rollback links.The text was updated successfully, but these errors were encountered: