site firehose
This commit is contained in:
parent
a5f7df4667
commit
2e3daf77bb
14
mod/home.php
14
mod/home.php
@ -164,9 +164,16 @@ function home_content(&$a, $update = 0, $load = false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
require_once('include/identity.php');
|
require_once('include/identity.php');
|
||||||
$sys = get_sys_channel();
|
|
||||||
$uids = " and item.uid = " . intval($sys['channel_id']) . " ";
|
if(get_config('system','site_firehose')) {
|
||||||
$a->data['firehose'] = intval($sys['channel_id']);
|
require_once('include/security.php');
|
||||||
|
$uids = " and item.uid in ( " . stream_perms_api_uids(PERMS_PUBLIC) . " ) and item_private = 0 and (item_flags & " . intval(ITEM_WALL) . " ) > 0 ";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$sys = get_sys_channel();
|
||||||
|
$uids = " and item.uid = " . intval($sys['channel_id']) . " ";
|
||||||
|
$a->data['firehose'] = intval($sys['channel_id']);
|
||||||
|
}
|
||||||
|
|
||||||
$page_mode = 'list';
|
$page_mode = 'list';
|
||||||
|
|
||||||
@ -199,6 +206,7 @@ function home_content(&$a, $update = 0, $load = false) {
|
|||||||
intval(ABOOK_FLAG_BLOCKED)
|
intval(ABOOK_FLAG_BLOCKED)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Then fetch all the children of the parents that are on this page
|
// Then fetch all the children of the parents that are on this page
|
||||||
|
Reference in New Issue
Block a user