summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Job/UserMentionJob.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Job/UserMentionJob.php b/app/Job/UserMentionJob.php
index ebb69094..bbb27131 100644
--- a/app/Job/UserMentionJob.php
+++ b/app/Job/UserMentionJob.php
@@ -23,7 +23,7 @@ class UserMentionJob extends BaseJob
*/
public function withParams($text, $eventName, GenericEvent $event)
{
- $this->jobParams = array($text, $eventName, $event);
+ $this->jobParams = array($text, $eventName, $event->getAll());
return $this;
}
@@ -32,10 +32,11 @@ class UserMentionJob extends BaseJob
*
* @param string $text
* @param string $eventName
- * @param GenericEvent $event
+ * @param array $eventData
*/
- public function execute($text, $eventName, GenericEvent $event)
+ public function execute($text, $eventName, array $eventData)
{
+ $event = new GenericEvent($eventData);
$users = $this->getMentionedUsers($text);
foreach ($users as $user) {