diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-05 14:26:11 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-05 14:26:11 -0700 |
commit | 408483f7718a2c81c37eb5f387130381a4a188c8 (patch) | |
tree | 23716a5be014afbc49b4ce1fadbace7900740e2f /plugins/TwitterBridge/jsonstreamreader.php | |
parent | 0eaa26476cac557484e295666b574340236452ff (diff) |
Fix up Twitter JSON formatting to be consistent between the polling and streaming API interfaces; basic stream tester can now import your notices (ooooh)
Diffstat (limited to 'plugins/TwitterBridge/jsonstreamreader.php')
-rw-r--r-- | plugins/TwitterBridge/jsonstreamreader.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |