Permalink
Browse files

changed the user feed collection object to use the alias "me"

  • Loading branch information...
1 parent 1844429 commit d85320d84dc46ae7703c44a163b9b65e8d3eea9e @rodsimpson rodsimpson committed Sep 12, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 js/app.js
View
@@ -38,7 +38,7 @@ $(document).ready(function () {
//default to full feed view
var fullFeedView = true;
//a new Collection object that will be used to hold the user's feed
- var userFeed = new Usergrid.Collection();
+ var userFeed = new Usergrid.Collection('users/me/feed');
//make sure messages are pulled back in order
userFeed.setQueryParams({"ql":"order by created desc"});
@@ -131,9 +131,6 @@ $(document).ready(function () {
//reset the query on both the feed objects to make sure we get the first page of results
userFeed.clearQuery();
fullActivityFeed.clearQuery();
-
- //now that we know who logged in, we can specify the user in their feed
- userFeed.setPath('users/' + response.user.username + '/feed');
//default to the full feed view (all messages in the system)
showFullFeed();

0 comments on commit d85320d

Please sign in to comment.