diff options
author | friendica <info@friendica.com> | 2014-01-22 22:56:16 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-22 22:56:16 -0800 |
commit | 43f2d6972c365d35924018311ac706690a6094ca (patch) | |
tree | 2690ac3de1b4b4bfa2ed45bc2bea50ddd930f434 | |
parent | 79c287916ff4263cf4aaaca5695cdf8ce67bb2b7 (diff) | |
download | volse-hubzilla-43f2d6972c365d35924018311ac706690a6094ca.tar.gz volse-hubzilla-43f2d6972c365d35924018311ac706690a6094ca.tar.bz2 volse-hubzilla-43f2d6972c365d35924018311ac706690a6094ca.zip |
API: provide a link to photo albums in api/red/albums
-rw-r--r-- | include/photos.php | 6 |
1 files changed, 5 insertions, 1 deletions
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; } } |