Twitter-compatible API: filled in the source attr for notices accessed via API

darcs-hash:20080809001240-ca946-0a8ec8b965876e1da90c675ad596b32906a21d93.gz
This commit is contained in:
zach 2008-08-08 20:12:40 -04:00
parent 3a124c5f53
commit 37a47f3d57
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class TwitterapiAction extends Action {
$twitter_status['truncated'] = 'false'; # Not possible on Laconica
$twitter_status['created_at'] = $this->date_twitter($notice->created);
$twitter_status['in_reply_to_status_id'] = ($notice->reply_to) ? intval($notice->reply_to) : NULL;
$twitter_status['source'] = NULL; # XXX: twitterific, twitterfox, etc. Not supported yet.
$twitter_status['source'] = $notice->source;
$twitter_status['id'] = intval($notice->id);
$twitter_status['in_reply_to_user_id'] = ($notice->reply_to) ? $this->replier_by_reply(intval($notice->reply_to)) : NULL;
$twitter_status['favorited'] = NULL; # XXX: Not implemented on Laconica yet.