mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
Merge pull request #14396 from annando/issue-14307
Issue 14307: prevent exception on post update
This commit is contained in:
commit
e6daaf49ce
1 changed files with 5 additions and 1 deletions
|
@ -1368,7 +1368,11 @@ class PostUpdate
|
|||
if (empty($item)) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
Post\Engagement::storeFromItem($item);
|
||||
} catch (\Throwable $th) {
|
||||
Logger::notice('Exception on storing engagement', ['uri-id' => $engagement['uri-id'], 'code' => $th->getCode(), 'message' => $th->getMessage()]);
|
||||
}
|
||||
}
|
||||
DBA::close($engagements);
|
||||
|
||||
|
|
Loading…
Reference in a new issue