mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:05:16 +02:00
Fixing SQL error when receiving DFRN posts (#5527)
* Some more notices * Fixed nasty to find notice in DFRN and OStatus * And more notices ... * Yeah, some removed notices ... again ... * Fixing bad SQL query
This commit is contained in:
parent
a2cea16954
commit
1eb8f04274
3 changed files with 30 additions and 5 deletions
|
@ -212,7 +212,8 @@ function dfrn_dispatch_public($postdata)
|
|||
}
|
||||
|
||||
// We now have some contact, so we fetch it
|
||||
$importer = DBA::fetchFirst("SELECT *, `name` as `senderName`
|
||||
$importer = DBA::fetchFirst("SELECT *, `name` as `senderName`,
|
||||
0 AS `importer_uid`,
|
||||
'' AS `uprvkey`,
|
||||
'UTC' AS `timezone`,
|
||||
'' AS `nickname`,
|
||||
|
@ -225,8 +226,6 @@ function dfrn_dispatch_public($postdata)
|
|||
WHERE NOT `blocked` AND `id` = ? LIMIT 1",
|
||||
$contact['id']);
|
||||
|
||||
$importer['importer_uid'] = 0;
|
||||
|
||||
// This should never fail
|
||||
if (!DBA::isResult($importer)) {
|
||||
logger('Contact not found for address ' . $msg['author']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue