Skip to content

Commit 29b8a36

Browse files
authored
Merge pull request #404 from sergeyklay/3.x
Fixed sending emails
2 parents a1e1ee0 + 8ef98f4 commit 29b8a36

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/model/Services/Service/Notifications.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,14 @@ public function getContentsForNotification(Entity $notification)
124124
return $notification->post->content;
125125
}
126126

127+
if (!$reply = $notification->getRelated('reply')) {
128+
container('logger')->debug('The notification #{id} does not have reply', [
129+
'id' => $notification->id
130+
]);
131+
132+
return '';
133+
}
134+
127135
return $notification->reply->content;
128136
}
129137

0 commit comments

Comments
 (0)