X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdfrn_notify.php;h=10a0a792a7715ce31630d4e26801eca260396a13;hb=5ebe10d7fc808dc2ed3502b532e6db020928aa1c;hp=27e8ed63f8f0b2ff2449edd564d95701b821b3ea;hpb=c66c09d5fd86e74ac6f1b877143e8cf55e3a0340;p=friendica.git diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index 27e8ed63f8..10a0a792a7 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -198,9 +198,6 @@ function dfrn_notify_post(App $a) { function dfrn_dispatch_public($postdata) { - /// @todo Currently disabled, until there is a working item distribution for public posts - return false; - $msg = Diaspora::decodeRaw([], $postdata); if (!$msg) { // We have to fail silently to be able to hand it over to the salmon parser @@ -211,7 +208,7 @@ function dfrn_dispatch_public($postdata) $contact = Contact::getDetailsByAddr($msg['author'], 0); if (!$contact) { logger('Contact not found for address ' . $msg['author']); - System::xmlExit(3, 'Contact not found'); + System::xmlExit(3, 'Contact ' . $msg['author'] . ' not found'); } // We now have some contact, so we fetch it @@ -225,7 +222,7 @@ function dfrn_dispatch_public($postdata) // This should never fail if (!DBM::is_result($importer)) { logger('Contact not found for address ' . $msg['author']); - System::xmlExit(3, 'Contact not found'); + System::xmlExit(3, 'Contact ' . $msg['author'] . ' not found'); } logger('Importing post from ' . $msg['author'] . ' with the public envelope.', LOGGER_DEBUG); @@ -249,7 +246,7 @@ function dfrn_dispatch_private($user, $postdata) $cid = Contact::getIdForURL($msg['author']); if (!$cid) { logger('Contact not found for address ' . $msg['author']); - System::xmlExit(3, 'Contact not found'); + System::xmlExit(3, 'Contact ' . $msg['author'] . ' not found'); } } @@ -262,7 +259,7 @@ function dfrn_dispatch_private($user, $postdata) // This should never fail if (!DBM::is_result($importer)) { logger('Contact not found for address ' . $msg['author']); - System::xmlExit(3, 'Contact not found'); + System::xmlExit(3, 'Contact ' . $msg['author'] . ' not found'); } // Set the user id. This is important if this is a public contact