1
0
Fork 0

Standards

This commit is contained in:
Michael 2021-05-17 22:31:35 +00:00
parent c9110e03e1
commit 59cff3511b

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 . '%'];