]> git.mxchange.org Git - friendica.git/commitdiff
Fix constant display updates
authorMichael <heluecht@pirati.ca>
Sat, 19 May 2018 06:12:55 +0000 (06:12 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 19 May 2018 06:12:55 +0000 (06:12 +0000)
mod/display.php

index 13a0ba465fd82eef78410158e802097fd0873370..fc3ff049d4e11c066c3358b549f38ebf15840d02 100644 (file)
@@ -333,13 +333,9 @@ function display_content(App $a, $update = false, $update_uid = 0) {
        $sql_extra = item_permissions_sql($a->profile['uid'], $remote_contact, $groups);
 
        if ($update) {
-               $r = dba::p("SELECT `id` FROM `item` WHERE
-                       `item`.`parent` = (SELECT `parent` FROM `item` WHERE `id` = ?)
-                       $sql_extra AND `unseen`",
-                       $item_id
-               );
-
-               if (dba::num_rows($r) == 0) {
+               if (!dba::exists('item',
+                       ["`item`.`parent` = (SELECT `parent` FROM `item` WHERE `id` = ?)
+                       $sql_extra AND `unseen` AND `uid` != 0", $item_id])) {
                        return '';
                }
        }