From 05c2c1da471ffa43009f59539212a14f31f667d2 Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Wed, 7 Aug 2024 18:10:18 +0200 Subject: [PATCH] =?UTF-8?q?Replaced=20=E2=80=9C=20=E2=80=A6=E2=80=9D=20wit?= =?UTF-8?q?h=20=E2=80=9C=20[continues=E2=80=A6]=E2=80=9D=20when=20announce?= =?UTF-8?q?ment=20toot=20is=20too=20long?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/clitools/getinstinfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/clitools/getinstinfo.php b/web/clitools/getinstinfo.php index f87f0cf..4ba4afa 100755 --- a/web/clitools/getinstinfo.php +++ b/web/clitools/getinstinfo.php @@ -821,9 +821,9 @@ if ($opts['sendtoot'] && $instanswered && $idata['IsMastodon'] && $idata['FirstS $toot.=N.N.'Long description: '; (is_null($idata['LongDesc'])) ? $toot.='unspecified' : $toot.=html2text($idata['LongDesc']); if (postlen($toot)>$iniarr['botmaxchars']) { - while (postlen($toot)+2>$iniarr['botmaxchars']) + while (postlen($toot)+13>$iniarr['botmaxchars']) $toot=preg_replace('#\s+(\S|\n)+$#u','',$toot); - $toot.=' …'; + $toot.=' [continues…]'; } $context=[ 'http'=>[