mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-24 15:59:40 +00:00
Update StatusEntityLexer
This commit is contained in:
parent
305fd10519
commit
865f852a8e
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue