ViewPhotoAlbum: add method to filter by id_user_uploaded

This commit is contained in:
2024-01-14 21:06:54 +01:00
parent 16683d2f1f
commit 6a25ecec23
2 changed files with 31 additions and 3 deletions

View File

@@ -118,6 +118,11 @@ class AssetIterator extends Asset
else
$where[] = 'a.mimetype = {string:mime_type}';
}
if (isset($options['id_user_uploaded']))
{
$params['id_user_uploaded'] = $options['id_user_uploaded'];
$where[] = 'id_user_uploaded = {int:id_user_uploaded}';
}
if (isset($options['id_tag']))
{
$params['id_tag'] = $options['id_tag'];