From 79e4ff2f32271557482bdacf5b0be0219d6d6a2d Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 25 Aug 2024 10:21:05 +0000 Subject: [PATCH] Issue 14307: prevent exception on post update --- src/Database/PostUpdate.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index 155bd67f14..0f0eb12899 100644 --- a/src/Database/PostUpdate.php +++ b/src/Database/PostUpdate.php @@ -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);