aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-08 23:04:34 -0800
committerfriendica <info@friendica.com>2012-11-08 23:04:34 -0800
commit517c05700d67eeec8945dbcec3a99d19a9f1f71c (patch)
tree488859cbb7c392f57edc8bb98b42a03a94c4e803 /mod
parent22841e15666a6678517cf7a1f8f8791dcd37e1a6 (diff)
downloadvolse-hubzilla-517c05700d67eeec8945dbcec3a99d19a9f1f71c.tar.gz
volse-hubzilla-517c05700d67eeec8945dbcec3a99d19a9f1f71c.tar.bz2
volse-hubzilla-517c05700d67eeec8945dbcec3a99d19a9f1f71c.zip
turn star into a feature
Diffstat (limited to 'mod')
-rw-r--r--mod/network.php27
1 files changed, 18 insertions, 9 deletions
diff --git a/mod/network.php b/mod/network.php
index a9d5d0a6a..3ed4d2f59 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -310,20 +310,29 @@ function network_content(&$a, $update = 0, $load = false) {
'sel' => $new_active,
'title' => t('Activity Stream - by date'),
),
- array(
+
+ );
+
+ if(feature_enabled(local_user(),'star_posts'))
+ $tabs[] = array(
'label' => t('Starred'),
'url'=>$a->get_baseurl(true) . '/' . $cmd . ((x($_GET,'cid')) ? '/?f=&cid=' . $_GET['cid'] : '') . '&star=1',
'sel'=>$starred_active,
'title' => t('Favourite Posts'),
- ),
-// array(
-// 'label' => t('Spam'),
-// 'url'=>$a->get_baseurl(true) . '/network?f=&spam=1'
-// 'sel'=> $spam_active,
-// 'title' => t('Posts flagged as SPAM'),
-// ),
+ );
+
+ // Not yet implemented
+
+ if(feature_enabled(local_user(),'spam_filter'))
+ $tabs[] = array(
+ 'label' => t('Spam'),
+ 'url'=>$a->get_baseurl(true) . '/network?f=&spam=1',
+ 'sel'=> $spam_active,
+ 'title' => t('Posts flagged as SPAM'),
+ );
+
+
- );
// save selected tab, but only if not in search or file mode
if(!x($_GET,'search') && !x($_GET,'file')) {