Merge pull request #11048 from MrPetovan/bug/10990-prepare_photo_data
Add expected field uri-id to Post query in prepare_photo_data()
This commit is contained in:
commit
ca851f8a03
|
@ -519,7 +519,7 @@ function prepare_photo_data($type, $scale, $photo_id, $uid)
|
|||
|
||||
// retrieve item element for getting activities (like, dislike etc.) related to photo
|
||||
$condition = ['uid' => $uid, 'resource-id' => $photo_id];
|
||||
$item = Post::selectFirst(['id', 'uid', 'uri', 'parent', 'allow_cid', 'deny_cid', 'allow_gid', 'deny_gid'], $condition);
|
||||
$item = Post::selectFirst(['id', 'uid', 'uri', 'uri-id', 'parent', 'allow_cid', 'deny_cid', 'allow_gid', 'deny_gid'], $condition);
|
||||
if (!DBA::isResult($item)) {
|
||||
throw new NotFoundException('Photo-related item not found.');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user