Update src/Module/Api/Friendica/Photoalbum/Show.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
ae8f1a1c5b
commit
6af4bfae21
1 changed files with 10 additions and 12 deletions
|
@ -90,7 +90,6 @@ class Show extends BaseApi
|
|||
$photos = Photo::selectToArray(['resource-id'], $condition, $params);
|
||||
|
||||
$data = ['photo' => []];
|
||||
if (DBA::isResult($photos)) {
|
||||
foreach ($photos as $photo) {
|
||||
$element = $this->friendicaPhoto->createFromId($photo['resource-id'], null, $uid, 'json', false);
|
||||
|
||||
|
@ -105,7 +104,6 @@ class Show extends BaseApi
|
|||
$data['photo'][] = $element;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->response->exit('statuses', $data, $this->parameters['extension'] ?? null, Contact::getPublicIdByUserId($uid));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue