aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2013-12-11 12:01:28 +0100
committermarijus <mario@localhost.localdomain>2013-12-11 12:01:28 +0100
commit1d8c15f2df45387993624a8217b648ac10491344 (patch)
tree39f71f18eb46fa9ad4e97f2f2eba2f8d1e0608b9 /include
parent48610a85dc2954074b2123b090207dcb4a4ab2be (diff)
downloadvolse-hubzilla-1d8c15f2df45387993624a8217b648ac10491344.tar.gz
volse-hubzilla-1d8c15f2df45387993624a8217b648ac10491344.tar.bz2
volse-hubzilla-1d8c15f2df45387993624a8217b648ac10491344.zip
make suggest channels a feature
Diffstat (limited to 'include')
-rw-r--r--include/features.php1
-rw-r--r--include/widgets.php5
2 files changed, 5 insertions, 1 deletions
diff --git a/include/features.php b/include/features.php
index 05206106a..978d7af8a 100644
--- a/include/features.php
+++ b/include/features.php
@@ -49,6 +49,7 @@ function get_features() {
array('personal_tab', t('Network Personal Tab'), t('Enable tab to display only Network posts that you\'ve interacted on')),
array('new_tab', t('Network New Tab'), t('Enable tab to display all new Network activity')),
array('affinity', t('Affinity Tool'), t('Filter stream activity by depth of relationships')),
+ array('suggest', t('Suggest Channels'), t('Show channel suggestions')),
),
// Item tools
diff --git a/include/widgets.php b/include/widgets.php
index cea5a6ce2..6d258d101 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -57,6 +57,9 @@ function widget_collections($args) {
function widget_suggestions($arr) {
+ if((! local_user()) || (! feature_enabled(local_user(),'suggest')))
+ return '';
+
require_once('include/socgraph.php');
$r = suggestion_query(local_user(),get_observer_hash(),0,20);
@@ -330,4 +333,4 @@ function widget_tagcloud_wall($arr) {
if(feature_enabled($a->profile['profile_uid'],'tagadelic'))
return tagblock('search',$a->profile['profile_uid'],$limit,$a->profile['channel_hash'],ITEM_WALL);
return '';
-} \ No newline at end of file
+}