]> git.mxchange.org Git - friendica.git/commitdiff
We don't really need the unsen bit in api_lists_statuses()
authorPierre Rudloff <contact@rudloff.pro>
Sat, 7 Apr 2018 17:52:27 +0000 (19:52 +0200)
committerPierre Rudloff <contact@rudloff.pro>
Sat, 7 Apr 2018 17:52:47 +0000 (19:52 +0200)
include/api.php

index 8cd7d23a73c4723f1074b17dab64bf5ca6c14276..4b126c93946bf63f4655d93b6ff05b3de2953dec 100644 (file)
@@ -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":