From 502fed198de69add4954b988983726e9442825df Mon Sep 17 00:00:00 2001 From: jeroenpraat Date: Mon, 22 Feb 2016 19:10:01 +0100 Subject: only hubs from local configured project on pubsites (hubzilla by default). as agreed with Mike. --- mod/pubsites.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'mod') diff --git a/mod/pubsites.php b/mod/pubsites.php index f9219ea46..e20db2ce5 100644 --- a/mod/pubsites.php +++ b/mod/pubsites.php @@ -27,6 +27,8 @@ function pubsites_content(&$a) { $o .= ''; if($j['sites']) { foreach($j['sites'] as $jj) { + if($jj['project'] !== Zotlabs\Project\System::get_platform_name()) + continue; $host = strtolower(substr($jj['url'],strpos($jj['url'],'://')+3)); $rate_links = ((local_channel()) ? '' : ''); $location = ''; @@ -37,12 +39,7 @@ function pubsites_content(&$a) { $location = '
 '; } $urltext = str_replace(array('https://'), '', $jj['url']); - if($jj['project'] == 'redmatrix' || $jj['project'] == '' ) { - $o .= ''; - } - else { $o .= '' . $rate_links . ''; - } } } -- cgit v1.2.3
' . t('Hub URL') . '' . t('Access Type') . ' / ' . '
' . t('Registration Policy') . '
' . t('Project') . '' . t('Ratings') . '
' . t('Rate') . '
' . $urltext . '' . $location . '' . $jj['access'] . ' / ' . $jj['register'] . '' . $jj['project'] . ' ' . t('View') . '