some fixes to directory keyword searches
This commit is contained in:
@@ -108,8 +108,10 @@ function zfinger_init(&$a) {
|
||||
$k = explode(' ',$p[0]['keywords']);
|
||||
if($k)
|
||||
foreach($k as $kk)
|
||||
if(trim($kk))
|
||||
$tags[] = trim($kk);
|
||||
if(trim($kk)) {
|
||||
$tags[] = trim($kk," \t\n\r\0\x0B,");
|
||||
}
|
||||
}
|
||||
if($tags)
|
||||
$profile['keywords'] = $tags;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user