aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-10-20 13:19:05 +0200
committerMario Vavti <mario@mariovavti.com>2015-10-20 13:19:05 +0200
commitbeae28f2db8ebfd2214c643578cb169e6962a5bf (patch)
tree4bff8215d60cc991fdd72d51455a3976c6a99b8f
parent81b2c5ac684cda4b958f1eb46496525ca005b174 (diff)
downloadvolse-hubzilla-beae28f2db8ebfd2214c643578cb169e6962a5bf.tar.gz
volse-hubzilla-beae28f2db8ebfd2214c643578cb169e6962a5bf.tar.bz2
volse-hubzilla-beae28f2db8ebfd2214c643578cb169e6962a5bf.zip
add obj_type and object again
-rw-r--r--include/photos.php4
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']));