mirror of
https://github.com/friendica/friendica
synced 2024-11-19 09:03:42 +00:00
Merge pull request #5085 from annando/display-update
Fix constant display updates
This commit is contained in:
commit
bba5ce14f7
1 changed files with 3 additions and 7 deletions
|
@ -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);
|
$sql_extra = item_permissions_sql($a->profile['uid'], $remote_contact, $groups);
|
||||||
|
|
||||||
if ($update) {
|
if ($update) {
|
||||||
$r = dba::p("SELECT `id` FROM `item` WHERE
|
if (!dba::exists('item',
|
||||||
`item`.`parent` = (SELECT `parent` FROM `item` WHERE `id` = ?)
|
["`item`.`parent` = (SELECT `parent` FROM `item` WHERE `id` = ?)
|
||||||
$sql_extra AND `unseen`",
|
$sql_extra AND `unseen` AND `uid` != 0", $item_id])) {
|
||||||
$item_id
|
|
||||||
);
|
|
||||||
|
|
||||||
if (dba::num_rows($r) == 0) {
|
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue