diff options
author | friendica <info@friendica.com> | 2012-12-26 16:50:52 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-12-26 16:50:52 -0800 |
commit | a162b204375dd8d4b5a86fc36a4e9f2305c3115a (patch) | |
tree | 344f7d71273306ff33bc8cf41713ba4891b77ae6 | |
parent | 84fefcd469db5a2f542884cce413b8147cb6cfc7 (diff) | |
download | volse-hubzilla-a162b204375dd8d4b5a86fc36a4e9f2305c3115a.tar.gz volse-hubzilla-a162b204375dd8d4b5a86fc36a4e9f2305c3115a.tar.bz2 volse-hubzilla-a162b204375dd8d4b5a86fc36a4e9f2305c3115a.zip |
add keywords to zot-info profile
-rw-r--r-- | mod/zfinger.php | 10 |
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; |