kopia lustrzana https://github.com/nextcloud/social
parse '#' in case of search on hashtag
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/774/head^2
rodzic
eca50cd168
commit
059d68fc4d
|
@ -132,6 +132,10 @@ class SearchService {
|
|||
return $result;
|
||||
}
|
||||
|
||||
if (substr($search, 0, 1) === '#') {
|
||||
$search = substr($search, 1);
|
||||
}
|
||||
|
||||
try {
|
||||
$exact = $this->hashtagService->getHashtag($search);
|
||||
$result['exact'] = $exact;
|
||||
|
@ -161,6 +165,7 @@ class SearchService {
|
|||
return $result;
|
||||
}
|
||||
|
||||
// TODO : search using FullTextSearch ?
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue