aboutsummaryrefslogtreecommitdiffstats
path: root/mod/like.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-10 01:05:49 -0800
committerfriendica <info@friendica.com>2015-02-10 01:05:49 -0800
commit268691ffb460e7d0a53dec858ee9658e20660755 (patch)
tree8c01cf4f01ac0fc99a9234cdeb010f8e0ccaa748 /mod/like.php
parentf7cce634479bb95258209a6aadb9becd3c6b94a3 (diff)
downloadvolse-hubzilla-268691ffb460e7d0a53dec858ee9658e20660755.tar.gz
volse-hubzilla-268691ffb460e7d0a53dec858ee9658e20660755.tar.bz2
volse-hubzilla-268691ffb460e7d0a53dec858ee9658e20660755.zip
correct the object type if it isn't stored/linked to an item yet
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']));