Skip to content
Browse files

fixed failed requests

  • Loading branch information...
1 parent dab86b2 commit 920226f520401dc2f72533e0fbd8bc87fd6e5569 @remy committed
Showing with 4 additions and 2 deletions.
  1. +2 −1 proxy.php
  2. +2 −1 snapbird.js
View
3 proxy.php
@@ -31,9 +31,10 @@
// if twitter is over capcity, try to avoid it borking
if (stripos($data, 'Over capacity') !== false) {
- $data = '{}';
+ $data = '{ "error": "Over capacity", results: [] }';
} else {
error_log($data);
+ $data = '{ "error": "data returned empty", results: [] }';
}
}
View
3 snapbird.js
@@ -62,6 +62,7 @@ var $tweets = $('#tweets ul'),
timeline : 'tweets',
favs: 'favourites',
withfriends: 'friends’ tweets',
+ mentions: 'mentions',
list: 'member tweets',
dm: 'received direct messages',
dm_sent: 'sent direct messages'
@@ -363,4 +364,4 @@ if ($('#screen_name').val() && $('#search').val()) {
} catch (e) {
// why is this throwing in FF?
}
-}
+}

0 comments on commit 920226f

Please sign in to comment.
Something went wrong with that request. Please try again.