add in_reply_to_status_id if notice is from twitter

This commit is contained in:
Evan Prodromou 2010-09-04 23:00:18 -04:00
parent 928239ecf8
commit 17a16026ff

View File

@ -196,6 +196,10 @@ function twitter_update_params($notice)
$params['lat'] = $notice->lat; $params['lat'] = $notice->lat;
$params['long'] = $notice->lon; $params['long'] = $notice->lon;
} }
if (!empty($notice->reply_to) && is_twitter_notice($notice->reply_to)) {
$reply = Notice::staticGet('id', $notice->reply_to);
$params['in_reply_to_status_id'] = twitter_status_id($reply);
}
return $params; return $params;
} }