diff options
Diffstat (limited to 'include/photos.php')
-rw-r--r-- | include/photos.php | 4 |
1 files changed, 3 insertions, 1 deletions
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'])); |