From 50dfc7d36ef08d1be8c50b0612ca0d8613c2aab5 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 9 Jun 2018 19:27:44 +0000 Subject: [PATCH] Small query corrections --- include/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/api.php b/include/api.php index 256d0431c6..95b462ae7f 100644 --- a/include/api.php +++ b/include/api.php @@ -1772,8 +1772,8 @@ function api_statuses_public_timeline($type) $r = dba::inArray($statuses); } else { - $condition = ["`uid` = ? AND `verb` = ? AND `id` > ? AND NOT `user`.`hidewall` AND `item`.`origin`", - api_user(), ACTIVITY_POST, $since_id]; + $condition = ["`verb` = ? AND `id` > ? AND NOT `private` AND `wall` AND NOT `user`.`hidewall` AND `item`.`origin`", + ACTIVITY_POST, $since_id]; if ($max_id > 0) { $condition[0] .= " AND `item`.`id` <= ?";