mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
Issue 14307: prevent exception on post update
This commit is contained in:
parent
f485699b83
commit
79e4ff2f32
1 changed files with 5 additions and 1 deletions
|
@ -1368,7 +1368,11 @@ class PostUpdate
|
||||||
if (empty($item)) {
|
if (empty($item)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
Post\Engagement::storeFromItem($item);
|
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);
|
DBA::close($engagements);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue