Author: scottbw
Date: Fri Feb 15 17:06:21 2013
New Revision: 1446690

URL: http://svn.apache.org/r1446690
Log:
make the default query show the ASF twitter feed rather than the public 
timeline as that API is no longer available; see WOOKIE-399

Modified:
    wookie/trunk/widgets/twitter/scripts/controller.js

Modified: wookie/trunk/widgets/twitter/scripts/controller.js
URL: 
http://svn.apache.org/viewvc/wookie/trunk/widgets/twitter/scripts/controller.js?rev=1446690&r1=1446689&r2=1446690&view=diff
==============================================================================
--- wookie/trunk/widgets/twitter/scripts/controller.js (original)
+++ wookie/trunk/widgets/twitter/scripts/controller.js Fri Feb 15 17:06:21 2013
@@ -29,7 +29,7 @@ var twitter_browse_controller = {
         // If there is no URL for searching, don't show 
         // the search panel
         //
-        var query = "";
+        query = "TheASF";// this is the default account to show
         var searchUrl = 
'"http://api.twitter.com/1/statuses/user_timeline.xml?screen_name="; + query + 
"&include_entities=true"'; 
         if(searchUrl === "") $("#searchPanel").hide();
         //
@@ -44,14 +44,15 @@ var twitter_browse_controller = {
      * Search the remote service and sort results if possible.
      */
     search:function(query, sort, order) {
-       if (sort === undefined) {
-           sort = "updated";
-       }
-       if (query === undefined || query == "") {
-           var url = 
widget.proxify("http://api.twitter.com/1/statuses/public_timeline.xml";);
-       } else {
-           var url = 
widget.proxify("http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=";
 + query + "&include_entities=true");
-       }
+        if (sort === undefined) {
+            sort = "updated";
+        }
+        
+       if (!query || query === undefined || query == "") {
+            query = "TheASF";
+        }
+        
+        var url = 
widget.proxify("http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=";
 + query + "&include_entities=true");
        twitter_browse_controller.populate(url);
     },
        


Reply via email to