aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Network.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-11 11:16:58 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-11 11:16:58 +0200
commit28e4977c33e11e4bb65c85977c82f3523f685bac (patch)
treedeb48b4562fdad75144f942e50f6767748fd0d74 /Zotlabs/Module/Network.php
parentc6abe87ec2e08fc38ff9c505ac2000d52d45c228 (diff)
downloadvolse-hubzilla-28e4977c33e11e4bb65c85977c82f3523f685bac.tar.gz
volse-hubzilla-28e4977c33e11e4bb65c85977c82f3523f685bac.tar.bz2
volse-hubzilla-28e4977c33e11e4bb65c85977c82f3523f685bac.zip
include item.title in /network and /channel search
Diffstat (limited to 'Zotlabs/Module/Network.php')
-rw-r--r--Zotlabs/Module/Network.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php
index ca0ec7844..c3db15ef2 100644
--- a/Zotlabs/Module/Network.php
+++ b/Zotlabs/Module/Network.php
@@ -382,7 +382,8 @@ class Network extends \Zotlabs\Web\Controller {
$sql_extra .= term_query('item',substr($search,1),TERM_HASHTAG,TERM_COMMUNITYTAG);
}
else {
- $sql_extra .= sprintf(" AND item.body like '%s' ",
+ $sql_extra .= sprintf(" AND (item.body like '%s' OR item.title like '%s') ",
+ dbesc(protect_sprintf('%' . $search . '%')),
dbesc(protect_sprintf('%' . $search . '%'))
);
}