return;
}
$uid = $target_item['uid'];
+ $items = [];
} elseif ($cmd == self::SUGGESTION) {
$target_item = dba::selectFirst('fsuggest', [], ['id' => $item_id]);
if (!DBM::is_result($target_item)) {
}
}
+ if (empty($items)) {
+ logger('No delivery data for ' . $cmd . ' - Item ID: ' .$item_id . ' - Contact ID: ' . $contact_id);
+ }
+
$owner = User::getOwnerDataById($uid);
if (!DBM::is_result($owner)) {
return;
return;
}
+ $user = dba::selectFirst('user', [], ['uid' => $target_uid]);
+
+ $target_importer = array_merge($target_importer, $user);
+
// Set the user id. This is important if this is a public contact
$target_importer['importer_uid'] = $target_uid;
DFRN::import($atom, $target_importer);
// We don't have a relationship with contacts on a public post.
// Se we transmit with the new method and via Diaspora as a fallback
- if (($items[0]['uid'] == 0) || ($contact['uid'] == 0)) {
+ if (!empty($items) && (($items[0]['uid'] == 0) || ($contact['uid'] == 0))) {
// Transmit in public if it's a relay post
$public_dfrn = ($contact['contact-type'] == ACCOUNT_TYPE_RELAY);