Browse Source

short URL [-6 chars do matter]

master
Denis Ryabov 11 years ago
parent
commit
5052fb277c
  1. 3
      habr_twister.php

3
habr_twister.php

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

Loading…
Cancel
Save