From 33988f8c917c6342d2b1d38a877f2c918a2b6679 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Fri, 20 Dec 2024 13:07:37 +0300 Subject: [PATCH] Telegram is very harmful --- app/Data/Casts/ChangelogCast.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Data/Casts/ChangelogCast.php b/app/Data/Casts/ChangelogCast.php index 56349b6..962b965 100644 --- a/app/Data/Casts/ChangelogCast.php +++ b/app/Data/Casts/ChangelogCast.php @@ -45,7 +45,7 @@ public function cast(DataProperty $property, mixed $value, array $properties, Cr return Str::of($this->removeEmojis($value)) ->replaceMatches([$this->from, $this->fullLink], '') ->replaceMatches($this->contributors, $this->contributor) - ->when($this->short, fn (Stringable $str) => $str->limit(3000, preserveWords: true)) + ->when($this->short, fn (Stringable $str) => $str->limit(2000, preserveWords: true)) ->trim() ->markdown($this->options) ->replaceMatches($this->resolveSpaces, '
  • $1
  • ')