changing categories into query list

This commit is contained in:
Roy Yang 2012-08-13 22:53:00 -07:00
parent 049e05283a
commit 0d2ef96a3f
3 changed files with 4 additions and 3 deletions

View file

@ -95,7 +95,7 @@
self.appDelegate = (NewsBlurAppDelegate *)[[UIApplication sharedApplication] delegate];
NSString *urlString = [NSString stringWithFormat:@
"http://%@/social/activities?user_id=%@&page=%i&limit=10"
"&category=star,feedsub,follow,comment_reply,comment_like,sharedstory",
"&category=star&category=feedsub&category=follow&category=comment_reply&category=comment_like&category=sharedstory",
NEWSBLUR_URL,
[appDelegate.dictUserProfile objectForKey:@"user_id"],
page];

View file

@ -97,7 +97,7 @@
NSString *urlString = [NSString stringWithFormat:@
"http://%@/social/interactions?user_id=%@&page=%i&limit=10"
"&categories=follow,comment_reply,comment_like,reply_reply,story_reshare",
"&category=follow&category=comment_reply&category=comment_like&category=reply_reply&category=story_reshare",
NEWSBLUR_URL,
[appDelegate.dictUserProfile objectForKey:@"user_id"],
page];

View file

@ -100,12 +100,13 @@
[self.profileBadge initProfile];
NSString *urlString = [NSString stringWithFormat:@
"http://%@/social/profile?user_id=%@"
"&category=follow,comment_reply,comment_like,sharedstory",
"&category=follow&category=comment_reply&category=comment_like&category=sharedstory",
NEWSBLUR_URL,
appDelegate.activeUserProfileId];
NSURL *url = [NSURL URLWithString:urlString];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setDelegate:self];
[request setDidFinishSelector:@selector(requestFinished:)];
[request setDidFailSelector:@selector(requestFailed:)];