]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '0.8.x' of git@gitorious.org:statusnet/mainline into 0.8.x
authorSarven Capadisli <csarven@status.net>
Sun, 8 Nov 2009 22:56:44 +0000 (22:56 +0000)
committerSarven Capadisli <csarven@status.net>
Sun, 8 Nov 2009 22:56:44 +0000 (22:56 +0000)
plugins/Realtime/RealtimePlugin.php

index 0c7c1240c3f7bb24031e7db82cdc33c7acbb8c04..181927968648a132f2ef9754725502f3b8d4b5af 100644 (file)
@@ -240,13 +240,13 @@ class RealtimePlugin extends Plugin
         // FIXME: this code should be abstracted to a neutral third
         // party, like Notice::asJson(). I'm not sure of the ethics
         // of refactoring from within a plugin, so I'm just abusing
-        // the ApiAction method. Don't do this unless you're me!
+        // the TwitterApiAction method. Don't do this unless you're me!
 
-        require_once(INSTALLDIR.'/lib/api.php');
+        require_once(INSTALLDIR.'/lib/twitterapi.php');
 
-        $act = new ApiAction('/dev/null');
+        $act = new TwitterApiAction('/dev/null');
 
-        $arr = $act->twitterStatusArray($notice, true);
+        $arr = $act->twitter_status_array($notice, true);
         $arr['url'] = $notice->bestUrl();
         $arr['html'] = htmlspecialchars($notice->rendered);
         $arr['source'] = htmlspecialchars($arr['source']);