From: Artur Weigandt Date: Thu, 27 Feb 2025 11:50:19 +0000 (+0100) Subject: Update src/Module/Api/Mastodon/Search.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=354d13167edb2138099e8e14ce64bcfdb6c97726;p=friendica.git Update src/Module/Api/Mastodon/Search.php Co-authored-by: Hypolite Petovan --- diff --git a/src/Module/Api/Mastodon/Search.php b/src/Module/Api/Mastodon/Search.php index c054329dde..d7224ff950 100644 --- a/src/Module/Api/Mastodon/Search.php +++ b/src/Module/Api/Mastodon/Search.php @@ -193,14 +193,10 @@ class Search extends BaseApi $condition = ["`id` IN (SELECT `tid` FROM `post-tag` WHERE `type` = ?) AND `name` LIKE ?", Tag::HASHTAG, $q . '%']; - $tags = DBA::select('tag', ['name'], $condition, $params); + $tags = DBA::selectToArray('tag', ['name'], $condition, $params); $hashtags = []; - if (!is_iterable($tags)) { - return $hashtags; - } - foreach ($tags as $tag) { if ($version == 1) { $hashtags[] = $tag['name'];