mirror of
https://gitlab.com/ifiction/ifhub-telegram.git
synced 2024-10-22 22:15:31 +00:00
Вычисление предела Mastodon
This commit is contained in:
parent
c277b02273
commit
27cd7e69b1
1 changed files with 3 additions and 2 deletions
5
bot.php
5
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));
|
||||
|
|
Loading…
Reference in a new issue