From c8292b3cddf0a29236cb981111beb4587d7be411 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 26 Dec 2012 03:49:50 -0800 Subject: remove the private keywords stuff to reduce directory and search complexity --- mod/match.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/match.php') diff --git a/mod/match.php b/mod/match.php index b845b0d46..32d92cdf3 100644 --- a/mod/match.php +++ b/mod/match.php @@ -11,19 +11,19 @@ function match_content(&$a) { $o .= '

' . t('Profile Match') . '

'; - $r = q("SELECT `pub_keywords`, `prv_keywords` FROM `profile` WHERE `is_default` = 1 AND `uid` = %d LIMIT 1", + $r = q("SELECT `keywords` FROM `profile` WHERE `is_default` = 1 AND `uid` = %d LIMIT 1", intval(local_user()) ); if(! count($r)) return; - if(! $r[0]['pub_keywords'] && (! $r[0]['prv_keywords'])) { + if(! $r[0]['keywords']) { notice( t('No keywords to match. Please add keywords to your default profile.') . EOL); return; } $params = array(); - $tags = trim($r[0]['pub_keywords'] . ' ' . $r[0]['prv_keywords']); + $tags = trim($r[0]['keywords']; if($tags) { $params['s'] = $tags; -- cgit v1.2.3