aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-26 16:50:52 -0800
committerfriendica <info@friendica.com>2012-12-26 16:50:52 -0800
commita162b204375dd8d4b5a86fc36a4e9f2305c3115a (patch)
tree344f7d71273306ff33bc8cf41713ba4891b77ae6
parent84fefcd469db5a2f542884cce413b8147cb6cfc7 (diff)
downloadvolse-hubzilla-a162b204375dd8d4b5a86fc36a4e9f2305c3115a.tar.gz
volse-hubzilla-a162b204375dd8d4b5a86fc36a4e9f2305c3115a.tar.bz2
volse-hubzilla-a162b204375dd8d4b5a86fc36a4e9f2305c3115a.zip
add keywords to zot-info profile
-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;