intval($_SESSION['visitor_id']),
intval($owner_uid)
);
- if (dbm::is_result($r))
+ if (dbm::is_result($r)) {
$contact = $r[0];
+ }
}
if (! $contact) {
return false;
$post_type = (($item['resource-id']) ? t('photo') : t('status'));
if ($item['object-type'] === ACTIVITY_OBJ_EVENT) {
$post_type = t('event');
+ }
$objtype = (($item['resource-id']) ? ACTIVITY_OBJ_IMAGE : ACTIVITY_OBJ_NOTE );
$link = xmlify('<link rel="alternate" type="text/html" href="' . App::get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['id'] . '" />' . "\n") ;
$body = $item['body'];
// Save the author information for the like in case we need to relay to Diaspora
- diaspora::store_like_signature($contact, $post_id);
+ Diaspora::store_like_signature($contact, $post_id);
$arr['id'] = $post_id;