mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
Add 'canRender' check to EchoMentionStatusPresentationModel
Change-Id: Ica338ff5810b62849d30e5b27709558f1b797c43
This commit is contained in:
parent
4a680a1e78
commit
eb98b21dfe
|
@ -20,6 +20,10 @@ class EchoMentionStatusPresentationModel extends EchoEventPresentationModel {
|
|||
return 'mention-failure';
|
||||
}
|
||||
|
||||
public function canRender() {
|
||||
return (bool)$this->event->getTitle();
|
||||
}
|
||||
|
||||
public function getHeaderMessage() {
|
||||
if ( $this->isTooManyMentionsFailure() ) {
|
||||
$msg = $this->getMessageWithAgent( 'notification-header-mention-failure-too-many' );
|
||||
|
|
Loading…
Reference in a new issue