mirror of
https://github.com/friendica/friendica
synced 2024-11-18 17:03:41 +00:00
Receiving of public posts is now working
This commit is contained in:
parent
b77ae3a8a7
commit
8f2db61538
2 changed files with 3 additions and 1 deletions
|
@ -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']);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue