mirror of
https://github.com/flarum/core.git
synced 2025-07-28 12:10:51 +02:00
Fix undefined variables
This commit is contained in:
@@ -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?
|
||||
|
Reference in New Issue
Block a user