X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FPost%2FHistory.php;h=24ee7c1e7d13bea850e12b6f91d07a04cd21eb95;hb=2c511b8a2388f5633456963f7b3c75b0070866b5;hp=68f2e9cda67f34f80db3236115fbfbb428c5a848;hpb=d77b043d9c8d24b80e2709dfee87226c2eae126c;p=friendica.git diff --git a/src/Model/Post/History.php b/src/Model/Post/History.php index 68f2e9cda6..24ee7c1e7d 100644 --- a/src/Model/Post/History.php +++ b/src/Model/Post/History.php @@ -42,6 +42,12 @@ class History $post = Post::selectFirstPost($fields, ['uri-id' => $uri_id]); if (empty($post)) { + Logger::warning('Post not found', ['uri-id' => $uri_id]); + return; + } + + if ($item['edited'] <= $post['edited']) { + Logger::info('New edit date is not newer than the old one', ['uri-id' => $uri_id, 'old' => $post['edited'], 'new' => $item['edited']]); return; }