add obj_type and object again
This commit is contained in:
parent
81b2c5ac68
commit
beae28f2db
@ -297,7 +297,9 @@ function photo_upload($channel, $observer, $args) {
|
|||||||
|
|
||||||
if($item['mid'] === $item['parent_mid']) {
|
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']) {
|
if($item['author_xchan'] === $channel['channel_hash']) {
|
||||||
$item['sig'] = base64url_encode(rsa_sign($item['body'],$channel['channel_prvkey']));
|
$item['sig'] = base64url_encode(rsa_sign($item['body'],$channel['channel_prvkey']));
|
||||||
|
Reference in New Issue
Block a user