Standards
This commit is contained in:
parent
c9110e03e1
commit
59cff3511b
1 changed files with 1 additions and 0 deletions
|
@ -178,6 +178,7 @@ class Search extends BaseApi
|
||||||
private static function searchHashtags(string $q, bool $exclude_unreviewed, int $limit, int $offset)
|
private static function searchHashtags(string $q, bool $exclude_unreviewed, int $limit, int $offset)
|
||||||
{
|
{
|
||||||
$q = ltrim($q, '#');
|
$q = ltrim($q, '#');
|
||||||
|
|
||||||
$params = ['order' => ['name'], 'limit' => [$offset, $limit]];
|
$params = ['order' => ['name'], 'limit' => [$offset, $limit]];
|
||||||
|
|
||||||
$condition = ["`id` IN (SELECT `tid` FROM `post-tag` WHERE `type` = ? AND `tid` = `id`) AND `name` LIKE ?", Tag::HASHTAG, $q . '%'];
|
$condition = ["`id` IN (SELECT `tid` FROM `post-tag` WHERE `type` = ? AND `tid` = `id`) AND `name` LIKE ?", Tag::HASHTAG, $q . '%'];
|
||||||
|
|
Loading…
Reference in a new issue