add keywords to zot-info profile
This commit is contained in:
parent
84fefcd469
commit
a162b20437
@ -90,6 +90,16 @@ function zfinger_init(&$a) {
|
|||||||
$profile['region'] = $p[0]['region'];
|
$profile['region'] = $p[0]['region'];
|
||||||
$profile['postcode'] = $p[0]['postal_code'];
|
$profile['postcode'] = $p[0]['postal_code'];
|
||||||
$profile['country'] = $p[0]['country_name'];
|
$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;
|
$ret['success'] = true;
|
||||||
|
Reference in New Issue
Block a user