mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 11:35:13 +00:00
Merge https://github.com/friendica/red into zpull
This commit is contained in:
commit
1d82d93078
1 changed files with 7 additions and 4 deletions
|
@ -139,13 +139,13 @@ function display_content(&$a, $update = 0, $load = false) {
|
|||
|
||||
$sql_extra = public_permissions_sql(get_observer_hash());
|
||||
|
||||
if($update && $load) {
|
||||
if(($update && $load) || ($_COOKIE['jsAvailable'] != 1)) {
|
||||
|
||||
$updateable = false;
|
||||
|
||||
$pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage']));
|
||||
|
||||
if($load) {
|
||||
if($load || ($_COOKIE['jsAvailable'] != 1)) {
|
||||
$r = null;
|
||||
if(local_user()) {
|
||||
$r = q("SELECT * from item
|
||||
|
@ -202,8 +202,11 @@ function display_content(&$a, $update = 0, $load = false) {
|
|||
}
|
||||
|
||||
|
||||
|
||||
$o .= conversation($a, $items, 'display', $update, 'client');
|
||||
if ($_COOKIE['jsAvailable'] == 1) {
|
||||
$o .= conversation($a, $items, 'display', $update, 'client');
|
||||
} else {
|
||||
$o .= conversation($a, $items, 'display', $update, 'traditional');
|
||||
}
|
||||
|
||||
if($updateable) {
|
||||
$x = q("UPDATE item SET item_flags = ( item_flags ^ %d )
|
||||
|
|
Loading…
Reference in a new issue