Small query corrections
This commit is contained in:
parent
446a45003d
commit
50dfc7d36e
1 changed files with 2 additions and 2 deletions
|
@ -1772,8 +1772,8 @@ function api_statuses_public_timeline($type)
|
||||||
|
|
||||||
$r = dba::inArray($statuses);
|
$r = dba::inArray($statuses);
|
||||||
} else {
|
} else {
|
||||||
$condition = ["`uid` = ? AND `verb` = ? AND `id` > ? AND NOT `user`.`hidewall` AND `item`.`origin`",
|
$condition = ["`verb` = ? AND `id` > ? AND NOT `private` AND `wall` AND NOT `user`.`hidewall` AND `item`.`origin`",
|
||||||
api_user(), ACTIVITY_POST, $since_id];
|
ACTIVITY_POST, $since_id];
|
||||||
|
|
||||||
if ($max_id > 0) {
|
if ($max_id > 0) {
|
||||||
$condition[0] .= " AND `item`.`id` <= ?";
|
$condition[0] .= " AND `item`.`id` <= ?";
|
||||||
|
|
Loading…
Reference in a new issue