From 43f2d6972c365d35924018311ac706690a6094ca Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 22 Jan 2014 22:56:16 -0800 Subject: API: provide a link to photo albums in api/red/albums --- include/photos.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/photos.php') diff --git a/include/photos.php b/include/photos.php index 5c03b2cdb..eebddd393 100644 --- a/include/photos.php +++ b/include/photos.php @@ -268,7 +268,11 @@ function photos_albums_list($channel,$observer) { if($albums) { $ret['success'] = true; 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; } } -- cgit v1.2.3