Update src/Module/Api/Mastodon/FollowedTags.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
85f57e69fa
commit
4e6b6fd76b
|
@ -65,7 +65,7 @@ class FollowedTags extends BaseApi
|
||||||
$saved_searches = DBA::select('search', ['id', 'term'], $condition);
|
$saved_searches = DBA::select('search', ['id', 'term'], $condition);
|
||||||
while ($saved_search = DBA::fetch($saved_searches)) {
|
while ($saved_search = DBA::fetch($saved_searches)) {
|
||||||
self::setBoundaries($saved_search['id']);
|
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);
|
$hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, $tag, [], true);
|
||||||
$return[] = $hashtag->toArray();
|
$return[] = $hashtag->toArray();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user