aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/zfinger.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php
index 1c51cdee9..72f680c1c 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -90,6 +90,16 @@ function zfinger_init(&$a) {
$profile['region'] = $p[0]['region'];
$profile['postcode'] = $p[0]['postal_code'];
$profile['country'] = $p[0]['country_name'];
+ if($p[0]['keywords']) {
+ $tags = array();
+ $k = explode(' ',$p[0]['keywords']);
+ if($k)
+ foreach($k as $kk)
+ if(trim($kk))
+ $tags[] = trim($kk);
+ if($tags)
+ $profile['keywords'] = $tags;
+ }
}
$ret['success'] = true;