From 7be1c83b0c4c2e01516ad42a5937e0540df7a76f Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Sun, 15 May 2016 02:37:18 +0200 Subject: [PATCH] photo.php: correct misspelling of an array key --- include/like.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/like.php b/include/like.php index 15633fc767..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") ;