Update StatusEntityLexer

This commit is contained in:
Daniel Supernault 2018-08-09 20:22:32 -06:00
parent 305fd10519
commit 865f852a8e
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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);
}
}