aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-12 16:24:30 -0800
committerfriendica <info@friendica.com>2013-02-12 16:24:30 -0800
commit02c636ed23ffde0b6423c2676cacc7ed88dc45de (patch)
treeb3218fb68ef8e741e7d773341834d4b5cb3736cf
parent33c97f718c86d542d31baad8b21c136990a528c7 (diff)
downloadvolse-hubzilla-02c636ed23ffde0b6423c2676cacc7ed88dc45de.tar.gz
volse-hubzilla-02c636ed23ffde0b6423c2676cacc7ed88dc45de.tar.bz2
volse-hubzilla-02c636ed23ffde0b6423c2676cacc7ed88dc45de.zip
send correct 'searchable' directory setting based on default profile setting
-rw-r--r--mod/zfinger.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php
index 398699b20..74353e8f9 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -83,6 +83,10 @@ function zfinger_init(&$a) {
$profile = array();
if($p) {
+
+ if(! intval($p[0]['publish']))
+ $searchable = false;
+
$profile['description'] = $p[0]['pdesc'];
$profile['birthday'] = $p[0]['dob'];
if($profile['birthday'] != '0000-00-00')