From 268691ffb460e7d0a53dec858ee9658e20660755 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 10 Feb 2015 01:05:49 -0800 Subject: correct the object type if it isn't stored/linked to an item yet --- mod/like.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/like.php') diff --git a/mod/like.php b/mod/like.php index 7c328367b..725551d6d 100755 --- a/mod/like.php +++ b/mod/like.php @@ -312,7 +312,7 @@ function like_content(&$a) { } else { $post_type = (($item['resource_type'] === 'photo') ? t('photo') : t('status')); - if($item['resource_type'] === 'event') + if($item['obj_type'] === ACTIVITY_OBJ_EVENT) $post_type = t('event'); $links = array(array('rel' => 'alternate','type' => 'text/html', 'href' => $item['plink'])); -- cgit v1.2.3