From f8042cc4677227aca8999c875c4f6d4c7acef96c Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 19 Dec 2013 15:23:36 -0800 Subject: add 'src' parameter to api photo list --- include/photos.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/photos.php') 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; } -- cgit v1.2.3