mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 01:10:07 +00:00
Merge "Add ?markasread=NNN to primary links in emails too"
This commit is contained in:
commit
954e83b0f8
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue