Skip to content

Commit

Permalink
Update Example/Classes/Models/Post.m
Browse files Browse the repository at this point in the history
Sorry the previous commit left 1 crucial line :(
  • Loading branch information
ijohn committed Oct 24, 2012
1 parent 3a80dbc commit 8f898ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Example/Classes/Models/Post.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ + (void)globalTimelinePostsWithBlock:(void (^)(NSArray *posts, NSError *error))b
[[AFAppDotNetAPIClient sharedClient] getPath:@"stream/0/posts/stream/global" parameters:nil success:^(AFHTTPRequestOperation *operation, id JSON) {
NSArray *postsFromResponse = [JSON valueForKeyPath:@"data"];
NSMutableArray *mutablePosts = [NSMutableArray arrayWithCapacity:[postsFromResponse count]];
for (NSDictionary *attributes in JSON) {
for (NSDictionary *attributes in postsFromResponse) {
Post *post = [[Post alloc] initWithAttributes:attributes];
[mutablePosts addObject:post];
}
Expand Down

0 comments on commit 8f898ad

Please sign in to comment.