From 59cff3511b05f0bdc28b3e0b8a374705cb13996c Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 17 May 2021 22:31:35 +0000 Subject: [PATCH] Standards --- src/Module/Api/Mastodon/Search.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Module/Api/Mastodon/Search.php b/src/Module/Api/Mastodon/Search.php index 5bd59d89a0..463c0eb6d0 100644 --- a/src/Module/Api/Mastodon/Search.php +++ b/src/Module/Api/Mastodon/Search.php @@ -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 . '%'];