From 123fe58c26ed29a6c75357a1ced004c1d4263d04 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 24 Oct 2015 22:16:08 +0200 Subject: new line between photo and description --- include/photos.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/photos.php') diff --git a/include/photos.php b/include/photos.php index d89c0fca1..cd2da735c 100644 --- a/include/photos.php +++ b/include/photos.php @@ -302,7 +302,7 @@ function photo_upload($channel, $observer, $args) { if($item['mid'] === $item['parent_mid']) { - $item['body'] = (($object) ? '' : $body); + $item['body'] = (($object) ? $args['body'] : $body . "\r\n" . $args['body']); $item['obj_type'] = (($object) ? ACTIVITY_OBJ_PHOTO : ''); $item['object'] = (($object) ? json_encode($object) : ''); @@ -365,7 +365,7 @@ function photo_upload($channel, $observer, $args) { $arr['item_thread_top'] = 1; $arr['item_private'] = intval($acl->is_private()); $arr['plink'] = z_root() . '/channel/' . $channel['channel_address'] . '/?f=&mid=' . $arr['mid']; - $arr['body'] = (($object) ? $args['body'] : $body . $args['body']); + $arr['body'] = (($object) ? $args['body'] : $body . "\r\n" . $args['body']); $result = item_store($arr); $item_id = $result['item_id']; -- cgit v1.2.3