mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:55:13 +00:00
API: provide a link to photo albums in api/red/albums
This commit is contained in:
parent
79c287916f
commit
43f2d6972c
1 changed files with 5 additions and 1 deletions
|
@ -268,7 +268,11 @@ function photos_albums_list($channel,$observer) {
|
||||||
if($albums) {
|
if($albums) {
|
||||||
$ret['success'] = true;
|
$ret['success'] = true;
|
||||||
foreach($albums as $k => $album) {
|
foreach($albums as $k => $album) {
|
||||||
$entry = array('text' => $album['album'], 'urlencode' => urlencode($album['album']),'bin2hex' => bin2hex($album['album']));
|
$entry = array(
|
||||||
|
'text' => $album['album'],
|
||||||
|
'url' => z_root() . '/photos/' . $channel['channel_address'] . '/album/' . bin2hex($album['album']),
|
||||||
|
'urlencode' => urlencode($album['album']),
|
||||||
|
'bin2hex' => bin2hex($album['album']));
|
||||||
$ret[] = $entry;
|
$ret[] = $entry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue