From 463f8ee3f32f724b233316adb79c49e8225daa5d Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 25 Oct 2020 17:59:28 +0000 Subject: [PATCH] Use lowercase for tags --- 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 0cb9107039..1e74eae00f 100644 --- a/src/Object/Api/Mastodon/Tag.php +++ b/src/Object/Api/Mastodon/Tag.php @@ -45,7 +45,7 @@ class Tag extends BaseEntity */ public function __construct(BaseURL $baseUrl, array $tag) { - $this->name = $tag['name']; - $this->url = $baseUrl . '/search?tag=' . urlencode($tag['name']); + $this->name = strtolower($tag['name']); + $this->url = $baseUrl . '/search?tag=' . urlencode($this->name); } }