]> git.mxchange.org Git - friendica.git/commitdiff
Receiving of public posts is now working
authorMichael <heluecht@pirati.ca>
Sun, 22 Apr 2018 10:58:03 +0000 (10:58 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 22 Apr 2018 10:58:03 +0000 (10:58 +0000)
mod/dfrn_notify.php
src/Protocol/DFRN.php

index 86e1484f796dad205c323db49ba9eec80dd297ac..e2f0336db6e5e267c0f06016f03e3318c2857773 100644 (file)
@@ -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']);
index 02632819685b49a69e0876b6116b1d529203e32d..bffcb2086fb328e99c767cc021abeec1c0a9554e 100644 (file)
@@ -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;
                        }