Standards

pull/10261/head
Michael 2021-05-17 22:31:35 +00:00
parent c9110e03e1
commit 59cff3511b
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ class Search extends BaseApi
private static function searchHashtags(string $q, bool $exclude_unreviewed, int $limit, int $offset)
{
$q = ltrim($q, '#');
$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 . '%'];