https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b0b88a
)
Some more table in query removed
author
Michael
<heluecht@pirati.ca>
Tue, 19 Jan 2021 08:10:38 +0000
(08:10 +0000)
committer
Michael
<heluecht@pirati.ca>
Tue, 19 Jan 2021 08:10:38 +0000
(08:10 +0000)
include/api.php
patch
|
blob
|
history
diff --git
a/include/api.php
b/include/api.php
index
1332a53
..
1913a73
100644
(file)
--- a/
include/api.php
+++ b/
include/api.php
@@
-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;
}