From: Michael Date: Sun, 22 Mar 2020 09:57:46 +0000 (+0000) Subject: Issue 8371: Enhanced logging for picture problem X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2c6c6579af42104833beded31f119c50e74cc810;p=friendica.git Issue 8371: Enhanced logging for picture problem --- diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 34fd37a9de..dd6fe52899 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -662,6 +662,13 @@ class Photo 'resource-id' => $image_rid, 'uid' => $uid ]; if (!Photo::exists($condition)) { + $condition = ['resource-id' => $image_rid]; + $photo = Photo::selectFirst(['allow_cid', 'allow_gid', 'deny_cid', 'deny_gid', 'uid'], $condition); + if (!DBA::isResult($photo)) { + Logger::info('Image not found', ['condition' => $condition]); + } else { + Logger::info('Mismatching permissions', ['condition' => $condition, 'photo' => $photo]); + } continue; }