mirror of
https://github.com/friendica/friendica
synced 2025-01-10 22:44:43 +00:00
Use LIKE instead of REGEXP in api_search
This commit is contained in:
parent
5899d821ef
commit
02733c66f3
1 changed files with 1 additions and 1 deletions
|
@ -1526,7 +1526,7 @@ function api_search($type)
|
||||||
"SELECT ".item_fieldlists()."
|
"SELECT ".item_fieldlists()."
|
||||||
FROM `item` ".item_joins()."
|
FROM `item` ".item_joins()."
|
||||||
WHERE ".item_condition()." AND (`item`.`uid` = 0 OR (`item`.`uid` = ? AND NOT `item`.`global`))
|
WHERE ".item_condition()." AND (`item`.`uid` = 0 OR (`item`.`uid` = ? AND NOT `item`.`global`))
|
||||||
AND `item`.`body` REGEXP ?
|
AND `item`.`body` LIKE CONCAT('%',?,'%')
|
||||||
$sql_extra
|
$sql_extra
|
||||||
AND `item`.`id`>?
|
AND `item`.`id`>?
|
||||||
ORDER BY `item`.`id` DESC LIMIT ".intval($start)." ,".intval($count)." ",
|
ORDER BY `item`.`id` DESC LIMIT ".intval($start)." ,".intval($count)." ",
|
||||||
|
|
Loading…
Reference in a new issue