의 미러
https://github.com/friendica/friendica
synced 2025-09-07 21:21:52 +02:00
update hashtag regular expression
This commit is contained in:
부모
8de263df8b
커밋
6c2ace3cab
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
|
@ -1538,7 +1538,7 @@ function api_search($type)
|
|||
$page = (!empty($_REQUEST['page']) ? $_REQUEST['page'] - 1 : 0);
|
||||
$start = $page * $count;
|
||||
$params = ['order' => ['id' => true], 'limit' => [$start, $count]];
|
||||
if (preg_match('/^\#([^#]+)/', $searchTerm, $matches) === 1 && isset($matches[1])) {
|
||||
if (preg_match('/^#(\w+)$/', $searchTerm, $matches) === 1 && isset($matches[1])) {
|
||||
$searchTerm = $matches[1];
|
||||
$condition = ["`oid` > ?
|
||||
AND (`uid` = 0 OR (`uid` = ? AND NOT `global`))
|
||||
|
|
불러오는 중…
테이블 추가
Add a link
Reference in a new issue