From: Michael Vogel Date: Mon, 28 Nov 2022 04:00:08 +0000 (+0100) Subject: Update src/Module/Api/Mastodon/FollowedTags.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4e6b6fd76b7b76fe577e3dfe19daf38a5a32aa90;hp=85f57e69faaca3645c596afd12e4b024194ae349;p=friendica.git Update src/Module/Api/Mastodon/FollowedTags.php Co-authored-by: Hypolite Petovan --- diff --git a/src/Module/Api/Mastodon/FollowedTags.php b/src/Module/Api/Mastodon/FollowedTags.php index 6e95783c9f..eb5e32fdc1 100644 --- a/src/Module/Api/Mastodon/FollowedTags.php +++ b/src/Module/Api/Mastodon/FollowedTags.php @@ -65,7 +65,7 @@ class FollowedTags extends BaseApi $saved_searches = DBA::select('search', ['id', 'term'], $condition); while ($saved_search = DBA::fetch($saved_searches)) { self::setBoundaries($saved_search['id']); - $tag = ['name' => substr($saved_search['term'], 1)]; + $tag = ['name' => ltrim($saved_search['term'], '#')]; $hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, $tag, [], true); $return[] = $hashtag->toArray();