mirror of
https://github.com/twisterarmy/twister-phpbot.git
synced 2025-02-03 10:35:25 +00:00
optional maxLen parameter in prettyPrint
This commit is contained in:
parent
3893eff7b4
commit
67e703e861
@ -105,10 +105,8 @@ class TwisterPost
|
||||
return true;
|
||||
}
|
||||
|
||||
public function prettyPrint($title, $url = '', $tags = null)
|
||||
public function prettyPrint($title, $url = '', $tags = null, $maxLen = 140)
|
||||
{
|
||||
$maxLen = 140;
|
||||
|
||||
$title_len = mb_strlen($title);
|
||||
$url_len = mb_strlen($url);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user