diff --git a/src/Object/Api/Mastodon/Tag.php b/src/Object/Api/Mastodon/Tag.php index e40b793e2..488865a51 100644 --- a/src/Object/Api/Mastodon/Tag.php +++ b/src/Object/Api/Mastodon/Tag.php @@ -51,8 +51,8 @@ class Tag extends BaseDataTransferObject */ public function __construct(BaseURL $baseUrl, array $tag, array $history = [], bool $following = false) { - $this->name = strtolower($tag['name']); - $this->url = $baseUrl . '/search?tag=' . urlencode($this->name); + $this->name = $tag['name']; + $this->url = $baseUrl . '/search?tag=' . urlencode(strtolower($this->name)); $this->history = $history; $this->following = $following; }