mirror of
https://github.com/flarum/core.git
synced 2025-07-29 12:40:40 +02:00
Fix undefined variables
This commit is contained in:
@@ -30,7 +30,9 @@ class PostMentionsMetadataUpdater
|
|||||||
|
|
||||||
public function whenPostWasPosted(PostWasPosted $event)
|
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
|
// @todo convert this into a new event (PostWasMentioned) and send
|
||||||
// notification as a handler?
|
// notification as a handler?
|
||||||
|
@@ -31,7 +31,9 @@ class UserMentionsMetadataUpdater
|
|||||||
|
|
||||||
public function whenPostWasPosted(PostWasPosted $event)
|
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
|
// @todo convert this into a new event (UserWasMentioned) and send
|
||||||
// notification as a handler?
|
// notification as a handler?
|
||||||
|
Reference in New Issue
Block a user