short URL [-6 chars do matter]

This commit is contained in:
Denis Ryabov 2014-02-28 14:07:33 +04:00
parent cd13e2e201
commit 5052fb277c

View File

@ -29,6 +29,9 @@ foreach ($rss->channel->item as $item) {
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);
if ($twister->postMessage($msg)) {