From beae28f2db8ebfd2214c643578cb169e6962a5bf Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 20 Oct 2015 13:19:05 +0200 Subject: add obj_type and object again --- include/photos.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/photos.php') diff --git a/include/photos.php b/include/photos.php index 0b59019ef..a203b9b6a 100644 --- a/include/photos.php +++ b/include/photos.php @@ -297,7 +297,9 @@ function photo_upload($channel, $observer, $args) { if($item['mid'] === $item['parent_mid']) { - $item['body'] = $body; + $item['body'] = (($object) ? '' : $body); + $item['obj_type'] = (($object) ? ACTIVITY_OBJ_PHOTO : ''); + $item['object'] = (($object) ? json_encode($object) : ''); if($item['author_xchan'] === $channel['channel_hash']) { $item['sig'] = base64url_encode(rsa_sign($item['body'],$channel['channel_prvkey'])); -- cgit v1.2.3