From 865f852a8e10312eacdfc7bcbd4cbdfa3dc97617 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 9 Aug 2018 20:22:32 -0600 Subject: [PATCH] Update StatusEntityLexer --- app/Jobs/StatusPipeline/StatusEntityLexer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Jobs/StatusPipeline/StatusEntityLexer.php b/app/Jobs/StatusPipeline/StatusEntityLexer.php index d04a7dd54..48b95d9a5 100644 --- a/app/Jobs/StatusPipeline/StatusEntityLexer.php +++ b/app/Jobs/StatusPipeline/StatusEntityLexer.php @@ -107,15 +107,15 @@ class StatusEntityLexer implements ShouldQueue if(empty($mentioned) || !isset($mentioned->id)) { continue; } - + DB::transaction(function () use ($status, $mentioned) { $m = new Mention; $m->status_id = $status->id; $m->profile_id = $mentioned->id; $m->save(); + + MentionPipeline::dispatch($status, $m); }); - - MentionPipeline::dispatch($status, $m); } }