correct the object type if it isn't stored/linked to an item yet
This commit is contained in:
parent
f7cce63447
commit
268691ffb4
@ -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']));
|
||||
|
Reference in New Issue
Block a user