Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
changed the user feed collection object to use the alias "me"
Browse files Browse the repository at this point in the history
  • Loading branch information
rodsimpson committed Sep 12, 2012
1 parent 1844429 commit d85320d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"});

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit d85320d

Please sign in to comment.