mirror of
https://github.com/friendica/friendica
synced 2025-04-28 13:04:23 +02:00
Corrected field names
This commit is contained in:
parent
9e37b49bea
commit
fc9453b7e9
3 changed files with 18 additions and 7 deletions
|
@ -115,9 +115,9 @@ class Diaspora
|
|||
{
|
||||
$r = dba::p("SELECT `contact`.`batch`, `contact`.`id`, `contact`.`name`, `contact`.`network`,
|
||||
`fcontact`.`batch` AS `fbatch`, `fcontact`.`network` AS `fnetwork` FROM `participation`
|
||||
INNER JOIN `contact` ON `contact`.`id` = `participation`.`contact`
|
||||
INNER JOIN `contact` ON `contact`.`id` = `participation`.`cid`
|
||||
LEFT JOIN `fcontact` ON `fcontact`.`url` = `contact`.`url`
|
||||
WHERE `participation`.`item` = ?", $thread);
|
||||
WHERE `participation`.`iid` = ?", $thread);
|
||||
|
||||
while ($contact = dba::fetch($r)) {
|
||||
if (!empty($contact['fnetwork'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue