Removed wrong tables
authorMichael <heluecht@pirati.ca>
Tue, 19 Jan 2021 08:08:49 +0000 (08:08 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 19 Jan 2021 08:08:49 +0000 (08:08 +0000)
include/api.php

index f1698e9..1332a53 100644 (file)
@@ -1733,11 +1733,11 @@ function api_statuses_public_timeline($type)
        $start = max(0, ($page - 1) * $count);
 
        if ($exclude_replies && !$conversation_id) {
-               $condition = ["`gravity` IN (?, ?) AND `iid` > ? AND `private` = ? AND `wall` AND NOT `author`.`hidden`",
+               $condition = ["`gravity` IN (?, ?) AND `iid` > ? AND `private` = ? AND `wall` AND NOT `author-hidden`",
                        GRAVITY_PARENT, GRAVITY_COMMENT, $since_id, Item::PUBLIC];
 
                if ($max_id > 0) {
-                       $condition[0] .= " AND `thread`.`iid` <= ?";
+                       $condition[0] .= " AND `iid` <= ?";
                        $condition[] = $max_id;
                }