mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:40:15 +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()."
|
||||
FROM `item` ".item_joins()."
|
||||
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
|
||||
AND `item`.`id`>?
|
||||
ORDER BY `item`.`id` DESC LIMIT ".intval($start)." ,".intval($count)." ",
|
||||
|
|
Loading…
Reference in a new issue