Merge "Add ?markasread=NNN to primary links in emails too"

This commit is contained in:
jenkins-bot 2016-06-13 11:52:03 +00:00 committed by Gerrit Code Review
commit 954e83b0f8
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ class EchoHtmlEmailFormatter extends EchoEventFormatter {
$actions = array();
$primaryLink = $model->getPrimaryLink();
$primaryLink = $model->getPrimaryLinkWithMarkAsRead();
if ( $primaryLink ) {
$actions[] = $this->renderLink( $primaryLink, self::PRIMARY_LINK_STYLE );
}

View file

@ -14,7 +14,7 @@ class EchoPlainTextEmailFormatter extends EchoEventFormatter {
$text .= EchoDiscussionParser::htmlToText( $bodyMsg->parse() );
}
$primaryLink = $model->getPrimaryLink();
$primaryLink = $model->getPrimaryLinkWithMarkAsRead();
$primaryUrl = wfExpandUrl( $primaryLink['url'], PROTO_CANONICAL );
$colon = $this->msg( 'colon-separator' )->text();