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)) { 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);