]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Twitter-compatible API: filled in the source attr for notices accessed via API
authorzach <zach@copley.name>
Sat, 9 Aug 2008 00:12:40 +0000 (20:12 -0400)
committerzach <zach@copley.name>
Sat, 9 Aug 2008 00:12:40 +0000 (20:12 -0400)
darcs-hash:20080809001240-ca946-0a8ec8b965876e1da90c675ad596b32906a21d93.gz

lib/twitterapi.php

index fb3a5aded7853ed49d53b932c53b73c76f479d0e..30d5bba237f34dd98a3cc26d923b1102a71db2d0 100644 (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.