From 38c85d3b39fa04c272dee303fe2c1feb46669206 Mon Sep 17 00:00:00 2001 From: CM <5914364+ssep1ol@users.noreply.github.com> Date: Wed, 21 Apr 2021 23:50:38 +0200 Subject: [PATCH] Bugfix See https://areait.runpolito.it/bugtracker/view.php?id=2 --- Commands/ShortenCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/ShortenCommand.php b/Commands/ShortenCommand.php index 35a4a98..e528810 100644 --- a/Commands/ShortenCommand.php +++ b/Commands/ShortenCommand.php @@ -74,7 +74,7 @@ class ShortenCommand extends UserCommand if($reply != NULL) { $replytext1 = $reply->getText(); - $result = json_decode($this->shorten($replytext1, $text, $user_id), true); + $result = json_decode($this->shorten($replytext1, strtolower($text), $user_id), true); $replytext = $result['message']."\n\nShortened link: ".$result['shorturl']."\n\nQR Code: ".$result['shorturl'].".qr\n\nStats: ".$result['shorturl']."+"; } @@ -141,4 +141,4 @@ class ShortenCommand extends UserCommand return $data; } -} \ No newline at end of file +}