mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:42:53 +00:00
Simplify the update functionality
This commit is contained in:
parent
dd82f150ca
commit
740f2e4cec
1 changed files with 1 additions and 8 deletions
|
@ -293,7 +293,7 @@ function network_content(App $a, $update = 0, $parent = 0)
|
||||||
$o = networkThreadedView($a, $update, $parent);
|
$o = networkThreadedView($a, $update, $parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($o === '') {
|
if (!$update && ($o === '')) {
|
||||||
notice(DI::l10n()->t("No items found"));
|
notice(DI::l10n()->t("No items found"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -600,13 +600,6 @@ function networkThreadedView(App $a, $update, $parent)
|
||||||
} else {
|
} else {
|
||||||
// Load all unseen items
|
// Load all unseen items
|
||||||
$sql_extra2 = "`item`.`unseen`";
|
$sql_extra2 = "`item`.`unseen`";
|
||||||
if (DI::config()->get("system", "like_no_comment")) {
|
|
||||||
$sql_extra2 .= " AND `item`.`gravity` IN (" . GRAVITY_PARENT . "," . GRAVITY_COMMENT . ")";
|
|
||||||
}
|
|
||||||
if ($order === 'post') {
|
|
||||||
// Only show toplevel posts when updating posts in this order mode
|
|
||||||
$sql_extra2 .= " AND `item`.`gravity` = " . GRAVITY_PARENT;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$r = q("SELECT `item`.`parent-uri` AS `uri`, `item`.`parent` AS `item_id`, $sql_order AS `order_date`
|
$r = q("SELECT `item`.`parent-uri` AS `uri`, `item`.`parent` AS `item_id`, $sql_order AS `order_date`
|
||||||
|
|
Loading…
Reference in a new issue