Add 'canRender' check to EchoMentionStatusPresentationModel

Change-Id: Ica338ff5810b62849d30e5b27709558f1b797c43
This commit is contained in:
Moriel Schottlender 2016-09-06 14:44:51 -07:00
parent 4a680a1e78
commit eb98b21dfe

View file

@ -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' );