Permalink
Browse files

Remove duplicated top attribute from getPost

A nit mistake was made that duplicated the top attribute, now that
attribute could just be one since we are filtering wrt the post id.
  • Loading branch information...
mohamedmansour committed Jan 16, 2012
1 parent 1347664 commit df705223f494d663c74c83280c519c424d6dcb19
Showing with 1 addition and 1 deletion.
  1. +1 −1 jsapi/socl_api.js
View
@@ -239,7 +239,7 @@ SoclAPI.prototype.getPost = function(payload, callback) {
return;
}
var url = SoclAPI.SEARCH_SERVICE + '(' + payload.user_id + ')?$filter:open.Post.id=\'' + payload.post_id + '\'' +
- '&$orderby:-open.Post.createdtime&$type:open.Post&$top:10&$top:10&scope:all';
+ '&$orderby:-open.Post.createdtime&$type:open.Post&$top:1&scope:all';
this.requestService({
url: url,
type: 'GET',

0 comments on commit df70522

Please sign in to comment.