aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-19 15:23:36 -0800
committerfriendica <info@friendica.com>2013-12-19 15:23:36 -0800
commitf8042cc4677227aca8999c875c4f6d4c7acef96c (patch)
tree78387564d0fb5bc746d0f7f9e81b826526d9849d
parente6dc916915af631effc790f1cadf740666168049 (diff)
downloadvolse-hubzilla-f8042cc4677227aca8999c875c4f6d4c7acef96c.tar.gz
volse-hubzilla-f8042cc4677227aca8999c875c4f6d4c7acef96c.tar.bz2
volse-hubzilla-f8042cc4677227aca8999c875c4f6d4c7acef96c.zip
add 'src' parameter to api photo list
-rw-r--r--include/photos.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/photos.php b/include/photos.php
index 9828140b8..3ccb536a8 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -324,8 +324,11 @@ function photos_list_photos($channel,$observer,$album = '') {
intval(PHOTO_NORMAL),
intval(PHOTO_PROFILE)
);
-
+
if($r) {
+ for($x = 0; $x < count($r); $x ++) {
+ $r[$x]['src'] = z_root() . '/photo/' . $r[$x]['resource_id'] . '-' . $r[$x]['scale'];
+ }
$ret['success'] = true;
$ret['photos'] = $r;
}