diff options
author | Evan Prodromou <evan@status.net> | 2009-11-09 17:46:48 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-11-09 17:46:48 -0500 |
commit | 18e61e631bac89e420af4bba1dc9f3cf51196c17 (patch) | |
tree | 46a6e692afaf582c38a3856ca69f1b990eb438eb /plugins/Realtime/RealtimePlugin.php | |
parent | 8bcc58a9894e715dc1cb39eeb390bf8deefc13b7 (diff) | |
parent | 3a2af8da24ae472f8c81fcafe20f2f48f8963a13 (diff) |
Merge branch '0.8.x' of git@gitorious.org:statusnet/mainline into 0.8.x
Diffstat (limited to 'plugins/Realtime/RealtimePlugin.php')
-rw-r--r-- | plugins/Realtime/RealtimePlugin.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index 0c7c1240c..181927968 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -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']); |