From 408483f7718a2c81c37eb5f387130381a4a188c8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 5 Oct 2010 14:26:11 -0700 Subject: Fix up Twitter JSON formatting to be consistent between the polling and streaming API interfaces; basic stream tester can now import your notices (ooooh) --- plugins/TwitterBridge/jsonstreamreader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/TwitterBridge/jsonstreamreader.php') diff --git a/plugins/TwitterBridge/jsonstreamreader.php b/plugins/TwitterBridge/jsonstreamreader.php index 427037129..f6572c9ee 100644 --- a/plugins/TwitterBridge/jsonstreamreader.php +++ b/plugins/TwitterBridge/jsonstreamreader.php @@ -253,7 +253,7 @@ abstract class JsonStreamReader // Server sends empty lines as keepalive. return; } - $data = json_decode($line, true); + $data = json_decode($line); if ($data) { $this->handleJson($data); } else { @@ -261,5 +261,5 @@ abstract class JsonStreamReader } } - abstract protected function handleJson(array $data); + abstract protected function handleJson(stdClass $data); } -- cgit v1.2.3-54-g00ecf