update to latest object
This commit is contained in:
parent
d66be62516
commit
ec28dee728
@ -309,9 +309,8 @@ function bb2diaspora_itembody($item, $force_update = false) {
|
|||||||
$is_photo = (($item['obj_type'] == ACTIVITY_OBJ_PHOTO) ? true : false);
|
$is_photo = (($item['obj_type'] == ACTIVITY_OBJ_PHOTO) ? true : false);
|
||||||
if($is_photo) {
|
if($is_photo) {
|
||||||
$object = json_decode($item['object'],true);
|
$object = json_decode($item['object'],true);
|
||||||
if($object['link'][2]) {
|
if($object['bbcode']) {
|
||||||
$photo_bb = '[zrl=' . rawurldecode($object['id']) . ']' . '[zmg=' . $object['link'][2]['width'] . 'x' . $object['link'][2]['height'] . ']' . rawurldecode($object['link'][2]['href']) . '[/zmg]' . '[/zrl]';
|
$item['body'] = (($item['body']) ? $object['bbcode'] . "\r\n" . $item['body'] : $object['bbcode']);
|
||||||
$item['body'] = (($item['body']) ? $photo_bb . $item['body'] : $photo_bb);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user