]> git.mxchange.org Git - friendica.git/commitdiff
Small query corrections
authorMichael <heluecht@pirati.ca>
Sat, 9 Jun 2018 19:27:44 +0000 (19:27 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 9 Jun 2018 19:27:44 +0000 (19:27 +0000)
include/api.php

index 256d0431c6692a869e11484b96972ea1cd4aed5f..95b462ae7f31fbcaa4ad3242a83721943aae5461 100644 (file)
@@ -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` <= ?";