From 7645b440e893959846da2e8984c2a0a7e8c62a3b Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 2 Feb 2013 01:58:11 -0800 Subject: more progress on photos api --- include/attach.php | 11 +++++++++++ include/photos.php | 38 +++++++++++++++++++++++++++++++++++++- 2 files changed, 48 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/attach.php b/include/attach.php index b2c57f36f..e4ef28637 100644 --- a/include/attach.php +++ b/include/attach.php @@ -1,5 +1,14 @@ get_baseurl() . '/photos/' . $channel['channel_address'] . '/image/' . $photo['resource_id'] . ']' + . '[img]' . $a->get_baseurl() . '/photo/' . $photo['resource_id'] . '-' . $photo['scale'] . '[/img]' + . '[/url]'; + + $item_id = item_store($arr); + return $item_id; + +} \ No newline at end of file -- cgit v1.2.3