aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-22 22:56:16 -0800
committerfriendica <info@friendica.com>2014-01-22 22:56:16 -0800
commit43f2d6972c365d35924018311ac706690a6094ca (patch)
tree2690ac3de1b4b4bfa2ed45bc2bea50ddd930f434 /include
parent79c287916ff4263cf4aaaca5695cdf8ce67bb2b7 (diff)
downloadvolse-hubzilla-43f2d6972c365d35924018311ac706690a6094ca.tar.gz
volse-hubzilla-43f2d6972c365d35924018311ac706690a6094ca.tar.bz2
volse-hubzilla-43f2d6972c365d35924018311ac706690a6094ca.zip
API: provide a link to photo albums in api/red/albums
Diffstat (limited to 'include')
-rw-r--r--include/photos.php6
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;
}
}