diff --git a/bot.php b/bot.php index 01c5151..c743833 100644 --- a/bot.php +++ b/bot.php @@ -110,8 +110,9 @@ foreach ($articles as $article) { } if ($config['MASTODON'] === true) { $mastodon->domain($config['MASTODON_SERVER'])->token($config['MASTODON_ACCESS_TOKEN']); - $mdescription = "$title\n\n".ellipse($description, 400); - $mdescription .= ": $link"; + $limit = 500 - strlen($link) - strlen($title) - 20; + $mdescription = "$title\n\n".ellipse($description, $limit); + $mdescription .= "\n$link"; /* if ($image) { download('https://ifhub.club'.$image, './'.basename($image));