use conversation defaults for /public page instead of collapsed list mode, but allow over-ride
This commit is contained in:
@@ -22,7 +22,7 @@ function public_content(&$a, $update = 0, $load = false) {
|
|||||||
|
|
||||||
$maxheight = get_config('system','home_divmore_height');
|
$maxheight = get_config('system','home_divmore_height');
|
||||||
if(! $maxheight)
|
if(! $maxheight)
|
||||||
$maxheight = 75;
|
$maxheight = 400;
|
||||||
|
|
||||||
$o .= '<div id="live-public"></div>' . "\r\n";
|
$o .= '<div id="live-public"></div>' . "\r\n";
|
||||||
$o .= "<script> var profile_uid = " . ((intval(local_channel())) ? local_channel() : (-1))
|
$o .= "<script> var profile_uid = " . ((intval(local_channel())) ? local_channel() : (-1))
|
||||||
@@ -80,9 +80,11 @@ function public_content(&$a, $update = 0, $load = false) {
|
|||||||
$a->data['firehose'] = intval($sys['channel_id']);
|
$a->data['firehose'] = intval($sys['channel_id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(get_config('system','public_list_mode'))
|
||||||
|
|
||||||
$page_mode = 'list';
|
$page_mode = 'list';
|
||||||
|
else
|
||||||
|
$page_mode = 'client';
|
||||||
|
|
||||||
|
|
||||||
$simple_update = (($update) ? " and item.item_unseen = 1 " : '');
|
$simple_update = (($update) ? " and item.item_unseen = 1 " : '');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user