correct the object type if it isn't stored/linked to an item yet

This commit is contained in:
friendica 2015-02-10 01:05:49 -08:00
parent f7cce63447
commit 268691ffb4

View File

@ -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']));