mirror of
https://gitlab.com/ifiction/ifhub-telegram.git
synced 2024-10-22 22:15:31 +00:00
rm telegram links
This commit is contained in:
parent
76332b2d9a
commit
3d08036a5b
1 changed files with 1 additions and 1 deletions
2
bot.php
2
bot.php
|
@ -115,7 +115,7 @@ foreach ($articles as $article) {
|
||||||
$limit = 500 - strlen($link_telegram) - strlen($title) - 20;
|
$limit = 500 - strlen($link_telegram) - strlen($title) - 20;
|
||||||
$description = "$title\n\n".ellipse($description, $limit);
|
$description = "$title\n\n".ellipse($description, $limit);
|
||||||
$description_mastodon = $description."\nСсылка на статью и голосование за рейтинг: $link_mastodon";
|
$description_mastodon = $description."\nСсылка на статью и голосование за рейтинг: $link_mastodon";
|
||||||
$description_telegram = $description."\n$link_telegram\nСсылка на статью и голосование за рейтинг: $link_mastodon";
|
$description_telegram = $description.PHP_EOL.$link_mastodon;
|
||||||
|
|
||||||
if (!$config['DRY_RUN']) {
|
if (!$config['DRY_RUN']) {
|
||||||
if ($config['TELEGRAM'] === true) {
|
if ($config['TELEGRAM'] === true) {
|
||||||
|
|
Loading…
Reference in a new issue