Fix undefined variables

This commit is contained in:
Toby Zerner 2015-05-19 11:23:35 +09:30
parent 978ecd369d
commit 643726df43
2 changed files with 6 additions and 2 deletions

View File

@ -30,7 +30,9 @@ class PostMentionsMetadataUpdater
public function whenPostWasPosted(PostWasPosted $event)
{
$mentioned = $this->syncMentions($event->post);
$reply = $event->post;
$mentioned = $this->syncMentions($reply);
// @todo convert this into a new event (PostWasMentioned) and send
// notification as a handler?

View File

@ -31,7 +31,9 @@ class UserMentionsMetadataUpdater
public function whenPostWasPosted(PostWasPosted $event)
{
$mentioned = $this->syncMentions($event->post);
$post = $event->post;
$mentioned = $this->syncMentions($post);
// @todo convert this into a new event (UserWasMentioned) and send
// notification as a handler?