$source .= ", " . $status->place->name . ", " . $status->place->country;
...
$source .= ", in reply to {$status->in_reply_to_screen_name}";
...
/*Ini yang dirubah, adaptasi dari kode lama*/
$source .= ", retweeted ";
switch($status->retweet_count) {
case(1) : $source .= "once"; break;
case(2) : $source .= "twice"; break;
// Twitter are uncapping the retweet count (https://dev.twitter.com/discussions/5129) will need to correctly format large numbers
case(is_int($status->retweet_count)) : $source .= number_format($status->retweet_count) . " times"; break;
// Legacy for old tweets where the retweet count is a string (usually "100+")
default : $source .= $status->retweet_count . " times";
}
...
/*Bagian ini juga adaptasi dari kode lama*/
if($status->favorite_count) {
$source .= ", favourited ";
switch($status->favorite_count) {
case(1) : $source .= "once"; break;
case(2) : $source .= "twice"; break;
case(is_int($status->favorite_count)) : $source .= number_format($status->favorite_count) . " times"; break;
default : $source .= $status->favorite_count. " times";
}
}
...
$html = "{$status->from->screen_name} $actions $link{$retweeted}
{$text}
$media$source";