Improve formatting in ActivityPub\Transmitter
This commit is contained in:
parent
4e579e77f5
commit
63e7996891
1 changed files with 7 additions and 7 deletions
|
@ -86,9 +86,9 @@ class Transmitter
|
||||||
$condition = DBA::buildCondition($parameters);
|
$condition = DBA::buildCondition($parameters);
|
||||||
|
|
||||||
$sql = "SELECT COUNT(*) as `count`
|
$sql = "SELECT COUNT(*) as `count`
|
||||||
FROM `contact`
|
FROM `contact`
|
||||||
JOIN `apcontact` ON `apcontact`.`url` = `contact`.`url`
|
JOIN `apcontact` ON `apcontact`.`url` = `contact`.`url`
|
||||||
" . $condition;
|
" . $condition;
|
||||||
|
|
||||||
$contacts = DBA::fetchFirst($sql, ...$parameters);
|
$contacts = DBA::fetchFirst($sql, ...$parameters);
|
||||||
|
|
||||||
|
@ -112,10 +112,10 @@ class Transmitter
|
||||||
$list = [];
|
$list = [];
|
||||||
|
|
||||||
$sql = "SELECT `contact`.`url`
|
$sql = "SELECT `contact`.`url`
|
||||||
FROM `contact`
|
FROM `contact`
|
||||||
JOIN `apcontact` ON `apcontact`.`url` = `contact`.`url`
|
JOIN `apcontact` ON `apcontact`.`url` = `contact`.`url`
|
||||||
" . $condition . "
|
" . $condition . "
|
||||||
LIMIT ?, ?";
|
LIMIT ?, ?";
|
||||||
|
|
||||||
$parameters[] = ($page - 1) * 100;
|
$parameters[] = ($page - 1) * 100;
|
||||||
$parameters[] = 100;
|
$parameters[] = 100;
|
||||||
|
|
Loading…
Reference in a new issue