aboutsummaryrefslogtreecommitdiffstats
path: root/mod/msearch.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-03 21:30:48 -0700
committerFriendika <info@friendika.com>2011-07-03 21:30:48 -0700
commite795d1265e9d49439e4af66184d50f6affe079c6 (patch)
tree72f8abad5d2df1138a973f1e34f3fe5997014b12 /mod/msearch.php
parentcd7098501e124eb6f56483503b78ad337b9d30ab (diff)
downloadvolse-hubzilla-e795d1265e9d49439e4af66184d50f6affe079c6.tar.gz
volse-hubzilla-e795d1265e9d49439e4af66184d50f6affe079c6.tar.bz2
volse-hubzilla-e795d1265e9d49439e4af66184d50f6affe079c6.zip
show keywords in match results
Diffstat (limited to 'mod/msearch.php')
-rw-r--r--mod/msearch.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/msearch.php b/mod/msearch.php
index dc9496295..541fd2c7e 100644
--- a/mod/msearch.php
+++ b/mod/msearch.php
@@ -16,7 +16,7 @@ function msearch_post(&$a) {
if(count($r))
$total = $r[0]['total'];
- $r = q("SELECT `username`, `nickname`, `user`.`uid` FROM `user` LEFT JOIN `profile` ON `user`.`uid` = `profile`.`uid` WHERE `is-default` = 1 AND `hidewall` = 0 AND MATCH `pub_keywords` AGAINST ('%s') LIMIT %d , %d ",
+ $r = q("SELECT `pub_keywords`, `username`, `nickname`, `user`.`uid` FROM `user` LEFT JOIN `profile` ON `user`.`uid` = `profile`.`uid` WHERE `is-default` = 1 AND `hidewall` = 0 AND MATCH `pub_keywords` AGAINST ('%s') LIMIT %d , %d ",
dbesc($search),
intval($startrec),
intval($perpage)
@@ -29,6 +29,7 @@ function msearch_post(&$a) {
'name' => $rr['name'],
'url' => $a->get_baseurl() . '/profile/' . $rr['nickname'],
'photo' => $a->get_baseurl() . '/photo/avatar/' . $rr['uid'] . 'jpg'
+ 'tags' => str_replace(array(',',' '),array(' ',' '),$rr['pub_keywords']);
);
}