mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
Fix undefined variables
This commit is contained in:
parent
978ecd369d
commit
643726df43
|
@ -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?
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue
Block a user