hubzilla issue #885
This commit is contained in:
parent
8c57ed64d0
commit
2c07a92ad7
@ -65,6 +65,10 @@ function categories_widget($baseurl,$selected = '') {
|
|||||||
if(! feature_enabled(App::$profile['profile_uid'],'categories'))
|
if(! feature_enabled(App::$profile['profile_uid'],'categories'))
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
|
require_once('include/security.php');
|
||||||
|
|
||||||
|
$sql_extra = item_permissions_sql(App::$profile['profile_uid']);
|
||||||
|
|
||||||
$item_normal = item_normal();
|
$item_normal = item_normal();
|
||||||
|
|
||||||
$terms = array();
|
$terms = array();
|
||||||
@ -77,6 +81,7 @@ function categories_widget($baseurl,$selected = '') {
|
|||||||
and item.owner_xchan = '%s'
|
and item.owner_xchan = '%s'
|
||||||
and item.item_wall = 1
|
and item.item_wall = 1
|
||||||
$item_normal
|
$item_normal
|
||||||
|
$sql_extra
|
||||||
order by term.term asc",
|
order by term.term asc",
|
||||||
intval(App::$profile['profile_uid']),
|
intval(App::$profile['profile_uid']),
|
||||||
intval(TERM_CATEGORY),
|
intval(TERM_CATEGORY),
|
||||||
@ -105,6 +110,8 @@ function cardcategories_widget($baseurl,$selected = '') {
|
|||||||
if(! feature_enabled(App::$profile['profile_uid'],'categories'))
|
if(! feature_enabled(App::$profile['profile_uid'],'categories'))
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
|
$sql_extra = item_permissions_sql(App::$profile['profile_uid']);
|
||||||
|
|
||||||
$item_normal = "and item.item_hidden = 0 and item.item_type = 6 and item.item_deleted = 0
|
$item_normal = "and item.item_hidden = 0 and item.item_type = 6 and item.item_deleted = 0
|
||||||
and item.item_unpublished = 0 and item.item_delayed = 0 and item.item_pending_remove = 0
|
and item.item_unpublished = 0 and item.item_delayed = 0 and item.item_pending_remove = 0
|
||||||
and item.item_blocked = 0 ";
|
and item.item_blocked = 0 ";
|
||||||
@ -118,6 +125,7 @@ function cardcategories_widget($baseurl,$selected = '') {
|
|||||||
and term.otype = %d
|
and term.otype = %d
|
||||||
and item.owner_xchan = '%s'
|
and item.owner_xchan = '%s'
|
||||||
$item_normal
|
$item_normal
|
||||||
|
$sql_extra
|
||||||
order by term.term asc",
|
order by term.term asc",
|
||||||
intval(App::$profile['profile_uid']),
|
intval(App::$profile['profile_uid']),
|
||||||
intval(TERM_CATEGORY),
|
intval(TERM_CATEGORY),
|
||||||
|
Reference in New Issue
Block a user