mirror of
https://github.com/twisterarmy/twister-phpbot.git
synced 2025-01-26 22:54:25 +00:00
short URL [-6 chars do matter]
This commit is contained in:
parent
cd13e2e201
commit
5052fb277c
@ -29,6 +29,9 @@ foreach ($rss->channel->item as $item) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// short URL [-6 chars do matter]
|
||||||
|
$link = str_replace('habrahabr.ru', 'habr.ru', $link);
|
||||||
|
$link = rtrim($link, '/');
|
||||||
$msg = $twister->prettyPrint($title, $link, isset($item->category) ? $item->category : null);
|
$msg = $twister->prettyPrint($title, $link, isset($item->category) ? $item->category : null);
|
||||||
|
|
||||||
if ($twister->postMessage($msg)) {
|
if ($twister->postMessage($msg)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user