[COMPONENT][Link] Even if everything else in Posting fails, no reason to discard the finding about the Link
This commit is contained in:
parent
671c3968e2
commit
8cd703d68b
|
@ -163,7 +163,7 @@ class Link extends Entity
|
||||||
'url_hash' => $url_hash,
|
'url_hash' => $url_hash,
|
||||||
'mimetype' => $headers['content-type'][0] ?? null,
|
'mimetype' => $headers['content-type'][0] ?? null,
|
||||||
]);
|
]);
|
||||||
DB::persist($link);
|
DB::wrapInTransaction(fn () => DB::persist($link));
|
||||||
Event::handle('LinkStoredNew', [&$link]);
|
Event::handle('LinkStoredNew', [&$link]);
|
||||||
return $link;
|
return $link;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user