mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
Some more table in query removed
This commit is contained in:
parent
2b0b88aa42
commit
9ba36b28c2
1 changed files with 2 additions and 2 deletions
|
@ -1812,11 +1812,11 @@ function api_statuses_networkpublic_timeline($type)
|
|||
|
||||
$start = max(0, ($page - 1) * $count);
|
||||
|
||||
$condition = ["`uid` = 0 AND `gravity` IN (?, ?) AND `thread`.`iid` > ? AND `private` = ?",
|
||||
$condition = ["`uid` = 0 AND `gravity` IN (?, ?) AND `iid` > ? AND `private` = ?",
|
||||
GRAVITY_PARENT, GRAVITY_COMMENT, $since_id, Item::PUBLIC];
|
||||
|
||||
if ($max_id > 0) {
|
||||
$condition[0] .= " AND `thread`.`iid` <= ?";
|
||||
$condition[0] .= " AND `iid` <= ?";
|
||||
$condition[] = $max_id;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue