]> git.mxchange.org Git - friendica.git/commitdiff
Make tag 'Names' Field have case-sensitive version
authorHank Grabowski <hankgrabowski@gmail.com>
Wed, 28 Dec 2022 22:01:06 +0000 (17:01 -0500)
committerHank Grabowski <hankgrabowski@gmail.com>
Wed, 28 Dec 2022 22:01:06 +0000 (17:01 -0500)
src/Object/Api/Mastodon/Tag.php

index e40b793e2623e528b128dd61b8855b868961a3b3..488865a510828e04d7677a6119b2f468c351b7cc 100644 (file)
@@ -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;
        }