mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-09 16:44:26 +02:00
Some standards
This commit is contained in:
parent
95f085b7ac
commit
f68c94db04
5 changed files with 25 additions and 24 deletions
|
@ -42,15 +42,15 @@ class Lists extends BaseApi
|
|||
|
||||
$photos = Photo::selectToArray(['resource-id'], ["`uid` = ? AND NOT `photo-type` IN (?, ?)", $uid, Photo::CONTACT_AVATAR, Photo::CONTACT_BANNER],
|
||||
['order' => ['id'], 'group_by' => ['resource-id']]);
|
||||
|
||||
|
||||
$data = ['photo' => []];
|
||||
if (DBA::isResult($photos)) {
|
||||
foreach ($photos as $photo) {
|
||||
$element = DI::friendicaPhoto()->createFromId($photo['resource-id'], null, $uid, 'json', false);
|
||||
|
||||
|
||||
$element['thumb'] = end($element['link']);
|
||||
unset($element['link']);
|
||||
|
||||
|
||||
if ($type == 'xml') {
|
||||
$thumb = $element['thumb'];
|
||||
unset($element['thumb']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue