mirror of
https://github.com/friendica/friendica
synced 2024-11-11 13:02:53 +00:00
Issue 8371: Enhanced logging for picture problem
This commit is contained in:
parent
7d1e0a72c1
commit
2c6c6579af
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue