From: Pierre Rudloff Date: Sat, 7 Apr 2018 17:52:27 +0000 (+0200) Subject: We don't really need the unsen bit in api_lists_statuses() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=929440417c3b59bb70d72dbff7e6d47708c4d1ed;p=friendica.git We don't really need the unsen bit in api_lists_statuses() --- diff --git a/include/api.php b/include/api.php index 8cd7d23a73..4b126c9394 100644 --- a/include/api.php +++ b/include/api.php @@ -3408,22 +3408,6 @@ function api_lists_statuses($type) $ret = api_format_items($r, $user_info, false, $type); - // Set all posts from the query above to seen - $idarray = []; - foreach ($r as $item) { - $idarray[] = intval($item["id"]); - } - - $idlist = implode(",", $idarray); - - if ($idlist != "") { - $unseen = q("SELECT `id` FROM `item` WHERE `unseen` AND `id` IN (%s)", $idlist); - - if ($unseen) { - q("UPDATE `item` SET `unseen` = 0 WHERE `unseen` AND `id` IN (%s)", $idlist); - } - } - $data = ['status' => $ret]; switch ($type) { case "atom":