$msg = Diaspora::decodeRaw($user, $postdata);
// Check if the user has got this contact
- $cid = getIdForURL($msg['author'], $user['uid']);
+ $cid = Contact::getIdForURL($msg['author'], $user['uid']);
if (!$cid) {
// Otherwise there should be a public contact
- $cid = getIdForURL($msg['author']);
+ $cid = Contact::getIdForURL($msg['author']);
if (!$cid) {
logger('Contact not found for address ' . $msg['author']);
System::xmlExit(3, 'Contact not found');
// Now we should be able to import it
$ret = DFRN::import($msg['message'], $importer);
- System::xmlExit($ret, 'Processed');
+ System::xmlExit($ret, 'Done');
} else {
require_once 'mod/salmon.php';
salmon_post($a, $postdata);