From: zach Date: Sat, 9 Aug 2008 00:12:40 +0000 (-0400) Subject: Twitter-compatible API: filled in the source attr for notices accessed via API X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37a47f3d57dd66ecc9779aeb77da04cd81308e2b;p=quix0rs-gnu-social.git Twitter-compatible API: filled in the source attr for notices accessed via API darcs-hash:20080809001240-ca946-0a8ec8b965876e1da90c675ad596b32906a21d93.gz --- diff --git a/lib/twitterapi.php b/lib/twitterapi.php index fb3a5aded7..30d5bba237 100644 --- a/lib/twitterapi.php +++ b/lib/twitterapi.php @@ -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.