]> git.mxchange.org Git - friendica.git/commitdiff
Standards
authorMichael <heluecht@pirati.ca>
Mon, 17 May 2021 22:31:35 +0000 (22:31 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 17 May 2021 22:31:35 +0000 (22:31 +0000)
src/Module/Api/Mastodon/Search.php

index 5bd59d89a0ab17e0f683a4773c9ba3ac8288a29f..463c0eb6d04a8f0279a3510d14461170c42ac62a 100644 (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 . '%'];