diff options
author | friendica <info@friendica.com> | 2012-12-26 03:49:50 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-12-26 03:49:50 -0800 |
commit | c8292b3cddf0a29236cb981111beb4587d7be411 (patch) | |
tree | d9e5ed5afbf5ca90d04325c70949ea436a40c578 /mod/match.php | |
parent | 1aeea64311d1ae104b8fe513bf13c6f7eeb4fa42 (diff) | |
download | volse-hubzilla-c8292b3cddf0a29236cb981111beb4587d7be411.tar.gz volse-hubzilla-c8292b3cddf0a29236cb981111beb4587d7be411.tar.bz2 volse-hubzilla-c8292b3cddf0a29236cb981111beb4587d7be411.zip |
remove the private keywords stuff to reduce directory and search complexity
Diffstat (limited to 'mod/match.php')
-rw-r--r-- | mod/match.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 .= '<h2>' . t('Profile Match') . '</h2>'; - $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; |