Twitter client prints tweet length
This commit is contained in:
parent
55c5b2e24a
commit
3049b58e14
1 changed files with 4 additions and 1 deletions
|
|
@ -34,7 +34,10 @@ for ($i = 0; $i < $db->count(); $i++) {
|
|||
$s = $patch->getVendor() . ' released #' . $patch->getProduct();
|
||||
if (!empty($patch->getBranch()))
|
||||
$s .= ' ' . $patch->getBranch();
|
||||
$s .= ' version ' . $patch->getVersion() . '. ' . $patch->getURL();
|
||||
$s .= ' version ' . $patch->getVersion() . '.';
|
||||
$len = strlen($s) + 24; // + space + wrapped URL
|
||||
$s .= ' ' . $patch->getURL();
|
||||
echo $patch->getId() . ': ' . $len . PHP_EOL;
|
||||
try {
|
||||
$twitter->send($s);
|
||||
} catch (DG\Twitter\Exception $e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue