From: Michael Date: Sun, 22 Apr 2018 10:58:03 +0000 (+0000) Subject: Receiving of public posts is now working X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f2db615385b640553e7ae72518e3a506fed6b0f;p=friendica.git Receiving of public posts is now working --- diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index 86e1484f79..e2f0336db6 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -217,6 +217,8 @@ function dfrn_dispatch_public($postdata) WHERE NOT `blocked` AND `id` = ? LIMIT 1", $contact['id']); + $importer['importer_uid'] = 0; + // This should never fail if (!DBM::is_result($importer)) { logger('Contact not found for address ' . $msg['author']); diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 0263281968..bffcb2086f 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -2780,7 +2780,7 @@ class DFRN logger('ignoring read-only contact '.$importer["id"]); return; } - if ($importer["uid"] == 0) { + if (($importer["uid"] == 0) && ($importer["importer_uid"] != 0)) { logger("Contact ".$importer["id"]." isn't known to user ".$importer["importer_uid"].". The post will be ignored.", LOGGER_DEBUG); return; }