Issue 14307: prevent exception on post update

This commit is contained in:
Michael 2024-08-25 10:21:05 +00:00
parent f485699b83
commit 79e4ff2f32

View file

@ -1368,7 +1368,11 @@ class PostUpdate
if (empty($item)) {
continue;
}
Post\Engagement::storeFromItem($item);
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);