Merge pull request #14396 from annando/issue-14307

Issue 14307: prevent exception on post update
This commit is contained in:
Tobias Diekershoff 2024-08-25 12:29:08 +02:00 committed by GitHub
commit e6daaf49ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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