X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Flike.php;h=9ceff2303a9ef7bfe4709a810024b8611dccf005;hb=7e6598f2c01dc25b9420309dac1ec84160f21a03;hp=49534ea6137d041ce5ef291c051b9ca670d97b3e;hpb=d676ae0f32a33e0f75c28d31f32f3d9476b4efd6;p=friendica.git diff --git a/include/like.php b/include/like.php index 49534ea613..9ceff2303a 100644 --- a/include/like.php +++ b/include/like.php @@ -161,7 +161,7 @@ function do_like($item_id, $verb) { $uri = item_new_uri($a->get_hostname(),$owner_uid); $post_type = (($item['resource-id']) ? t('photo') : t('status')); - if($item['obj_type'] === ACTIVITY_OBJ_EVENT) + if($item['object-type'] === ACTIVITY_OBJ_EVENT) $post_type = t('event'); $objtype = (($item['resource-id']) ? ACTIVITY_OBJ_PHOTO : ACTIVITY_OBJ_NOTE ); $link = xmlify('' . "\n") ; @@ -194,6 +194,7 @@ EOT; $arr = array(); + $arr['guid'] = get_guid(32); $arr['uri'] = $uri; $arr['uid'] = $owner_uid; $arr['contact-id'] = $contact['id'];