X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnetwork.php;h=624169511a06a5c6e702bf4a37dcd6367a9df1ec;hb=ed6ca1d3845070decc732ce5df266b49b448b940;hp=51f3d22327b160b3f6f1908a21598c32ad30c1d0;hpb=cda327a36840e953db87ae4ea215d9b7d0d0b513;p=friendica.git diff --git a/mod/network.php b/mod/network.php index 51f3d22327..624169511a 100644 --- a/mod/network.php +++ b/mod/network.php @@ -740,8 +740,17 @@ function network_content(&$a, $update = 0) { } } - $itemspage_network = get_pconfig(local_user(),'system','itemspage_network'); - $itemspage_network = ((intval($itemspage_network)) ? $itemspage_network : 40); + // check if we serve a mobile device and get the user settings + // accordingly + if ($a->is_mobile) { + $itemspage_network = get_pconfig(local_user(),'system','itemspage_mobile_network'); + $itemspage_network = ((intval($itemspage_network)) ? $itemspage_network : 20); + } else { + $itemspage_network = get_pconfig(local_user(),'system','itemspage_network'); + $itemspage_network = ((intval($itemspage_network)) ? $itemspage_network : 40); + } + // now that we have the user settings, see if the theme forces + // a maximum item number which is lower then the user choice if(($a->force_max_items > 0) && ($a->force_max_items < $itemspage_network)) $itemspage_network = $a->force_max_items;