]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Tags.php
Merge pull request #13176 from MrPetovan/bug/warnings
[friendica.git] / src / Module / Api / Mastodon / Tags.php
index d38899ac0f294828030e253f49ae8c6266de93f1..229fd8e005cd3fb96e656b48b19b1ecdb976cf6c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -45,9 +45,8 @@ class Tags extends BaseApi
 
                $tag       = ltrim($this->parameters['hashtag'], '#');
                $following = DBA::exists('search', ['uid' => $uid, 'term' => '#' . $tag]);
-               $term      = ['term' => $tag];
 
-               $hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, $term, [], $following);
+               $hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, ['name' => $tag], [], $following);
                System::jsonExit($hashtag->toArray());
        }
 }