jenkins-bot has submitted this change and it was merged. Change subject: Give links to a user's suppressed edits on Special:Contribs ......................................................................
Give links to a user's suppressed edits on Special:Contribs For users who are able to see the log, provide links to view suppression log entries for actions done by the user. A link is also added on Special:DeletedContributions. This was formerly done by the Oversight extension. Bug: 59120 Change-Id: I0e606636e80810f9917d6aa624a79f1e190297f6 --- M includes/specials/SpecialContributions.php M includes/specials/SpecialDeletedContributions.php M languages/messages/MessagesEn.php M languages/messages/MessagesQqq.php M maintenance/language/messages.inc 5 files changed, 24 insertions(+), 0 deletions(-) Approvals: PiRSquared17: Looks good to me, but someone else must approve Alex Monk: Looks good to me, approved jenkins-bot: Verified diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index c594807..7df00e2 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -318,6 +318,16 @@ array(), array( 'page' => $userpage->getPrefixedText() ) ); + + # Suppression log link (bug 59120) + if ( $this->getUser()->isAllowed( 'suppressionlog' ) ) { + $tools[] = Linker::linkKnown( + SpecialPage::getTitleFor( 'Log', 'suppress' ), + $this->msg( 'sp-contributions-suppresslog' )->escaped(), + array(), + array( 'offender' => $username ) + ); + } } # Uploads $tools[] = Linker::linkKnown( diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index d148a50..6c3cb95 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -427,6 +427,15 @@ 'page' => $nt->getPrefixedText() ) ); + # Suppression log link (bug 59120) + if ( $this->getUser()->isAllowed( 'suppressionlog' ) ) { + $tools[] = Linker::linkKnown( + SpecialPage::getTitleFor( 'Log', 'suppress' ), + $this->msg( 'sp-contributions-suppresslog' )->escaped(), + array(), + array( 'offender' => $userObj->getName() ) + ); + } } # Uploads diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 3fffec2..917c893 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -3254,6 +3254,7 @@ 'sp-contributions-newbies-sub' => 'For new accounts', 'sp-contributions-newbies-title' => 'User contributions for new accounts', 'sp-contributions-blocklog' => 'block log', +'sp-contributions-suppresslog' => 'suppressed user contributions', 'sp-contributions-deleted' => 'deleted user contributions', 'sp-contributions-uploads' => 'uploads', 'sp-contributions-logs' => 'logs', diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index 345bcd9..8c4ae56 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -6188,6 +6188,9 @@ * {{msg-mw|Sp-contributions-deleted}} * {{msg-mw|Sp-contributions-userrights}} {{Identical|Block log}}', +'sp-contributions-suppresslog' => 'Used as a display name for a link to log entries of suppressed edits made by that user. + +Used as link title in [[Special:Contributions]] and in [[Special:DeletedContributions]].', 'sp-contributions-deleted' => "This is a link anchor used in [[Special:Contributions]]/''name'', when user viewing the page has the right to delete pages, or to restore deleted pages. Used as link title in [[Special:Contributions]]. diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index eab6cf6..24554a2 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -2239,6 +2239,7 @@ 'sp-contributions-blocked-notice', 'sp-contributions-blocked-notice-anon', 'sp-contributions-search', + 'sp-contributions-suppresslog', 'sp-contributions-username', 'sp-contributions-toponly', 'sp-contributions-submit', -- To view, visit https://gerrit.wikimedia.org/r/104711 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0e606636e80810f9917d6aa624a79f1e190297f6 Gerrit-PatchSet: 4 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Alex Monk <kren...@gmail.com> Gerrit-Reviewer: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Parent5446 <tylerro...@gmail.com> Gerrit-Reviewer: PiRSquared17 <pirsquare...@gmail.com> Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits