From 4f0968a93ca0d2d484f211a4c6b40ca5b66957a1 Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Wed, 28 Dec 2022 17:01:06 -0500 Subject: [PATCH] Make tag 'Names' Field have case-sensitive version --- src/Object/Api/Mastodon/Tag.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Object/Api/Mastodon/Tag.php b/src/Object/Api/Mastodon/Tag.php index e40b793e26..488865a510 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; } -- 2.39.5