1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2025-01-24 15:59:40 +00:00

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)) { if(empty($mentioned) || !isset($mentioned->id)) {
continue; continue;
} }
DB::transaction(function () use ($status, $mentioned) { DB::transaction(function () use ($status, $mentioned) {
$m = new Mention; $m = new Mention;
$m->status_id = $status->id; $m->status_id = $status->id;
$m->profile_id = $mentioned->id; $m->profile_id = $mentioned->id;
$m->save(); $m->save();
MentionPipeline::dispatch($status, $m);
}); });
MentionPipeline::dispatch($status, $m);
} }
} }