Mooeypoo has uploaded a new change for review. https://gerrit.wikimedia.org/r/311198
Change subject: Remove primary link from the bundle of page linked notification ...................................................................... Remove primary link from the bundle of page linked notification Bug: T145902 Change-Id: I456bf76a7bd531ffcad5462708f37cd54d8af99d --- M includes/formatters/PageLinkedPresentationModel.php 1 file changed, 8 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo refs/changes/98/311198/1 diff --git a/includes/formatters/PageLinkedPresentationModel.php b/includes/formatters/PageLinkedPresentationModel.php index df9d757..bf7f73d 100644 --- a/includes/formatters/PageLinkedPresentationModel.php +++ b/includes/formatters/PageLinkedPresentationModel.php @@ -22,10 +22,14 @@ } public function getPrimaryLink() { - return array( - 'url' => $this->getPageFrom()->getFullURL(), - 'label' => $this->msg( 'notification-link-text-view-page' )->text(), - ); + if ( $this->isBundled() ) { + return false; + } else { + return array( + 'url' => $this->getPageFrom()->getFullURL(), + 'label' => $this->msg( 'notification-link-text-view-page' )->text(), + ); + } } public function getSecondaryLinks() { -- To view, visit https://gerrit.wikimedia.org/r/311198 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I456bf76a7bd531ffcad5462708f37cd54d8af99d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Echo Gerrit-Branch: master Gerrit-Owner: Mooeypoo <mor...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits