]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Tags/Unfollow.php
Merge branch '2023.03-rc' into stable
[friendica.git] / src / Module / Api / Mastodon / Tags / Unfollow.php
index 163b65003b4285690d242e6cd7f654e62882b678..06b08b7c3d1130bb80a048a1977d312bfcae2263 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
  *
@@ -44,7 +44,7 @@ class Unfollow extends BaseApi
 
                DBA::delete('search', $term);
 
-               $hashtag  = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, $term, [], false);
+               $hashtag = new \Friendica\Object\Api\Mastodon\Tag($this->baseUrl, ['name' => ltrim($this->parameters['hashtag'])], [], false);
                System::jsonExit($hashtag->toArray());
        }
 }