From 6a9ec1487829003f77079ec7efcf7df1d41445ce Mon Sep 17 00:00:00 2001
From: rabuzarus <>
Date: Thu, 8 Oct 2015 20:26:11 +0200
Subject: [PATCH] small bugfix in like.php

---
 mod/like.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mod/like.php b/mod/like.php
index 4f6d6cd6d..90782687d 100755
--- a/mod/like.php
+++ b/mod/like.php
@@ -166,7 +166,7 @@ function like_content(&$a) {
 	$uri = item_new_uri($a->get_hostname(),$owner_uid);
 
 	$post_type = (($item['resource-id']) ? t('photo') : t('status'));
-	if($item['resource-type'] === 'event')
+	if($item['obj_type'] === ACTIVITY_OBJ_EVENT)
 		$post_type = t('event');
 	$objtype = (($item['resource-id']) ? ACTIVITY_OBJ_PHOTO : ACTIVITY_OBJ_NOTE );
 	$link = xmlify('<link rel="alternate" type="text/html" href="' . $a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['id'] . '" />' . "\n") ;