aboutsummaryrefslogtreecommitdiffstats
path: root/mod/like.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/like.php')
-rwxr-xr-xmod/like.php2
1 files changed, 1 insertions, 1 deletions
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']));