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

Commit

Permalink
fixed a bug where is was showing unpublished articles
Browse files Browse the repository at this point in the history
  • Loading branch information
Salvador Guerrero authored and austintaylor committed Apr 2, 2015
1 parent d4a05fb commit 53707fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/UVArticle.m
Expand Up @@ -19,7 +19,7 @@ @implementation UVArticle

+ (id)getArticlesWithTopicId:(NSInteger)topicId page:(NSInteger)page delegate:(id<UVModelDelegate>)delegate {
NSString *path = [self apiPath:[NSString stringWithFormat:@"/topics/%d/articles.json", (int)topicId]];
NSDictionary *params = @{ @"sort" : @"ordered", @"page" : [NSString stringWithFormat:@"%d", (int)page] };
NSDictionary *params = @{ @"sort" : @"ordered", @"page" : [NSString stringWithFormat:@"%d", (int)page], @"filter" : @"published" };
return [self getPath:path
withParams:params
target:delegate
Expand All @@ -29,7 +29,7 @@ + (id)getArticlesWithTopicId:(NSInteger)topicId page:(NSInteger)page delegate:(i

+ (id)getArticlesWithPage:(NSInteger)page delegate:(id<UVModelDelegate>)delegate {
NSString *path = [self apiPath:@"/articles.json"];
NSDictionary *params = @{ @"sort" : @"ordered", @"page" : [NSString stringWithFormat:@"%d", (int)page] };
NSDictionary *params = @{ @"sort" : @"ordered", @"page" : [NSString stringWithFormat:@"%d", (int)page], @"filter" : @"published" };
return [self getPath:path
withParams:params
target:delegate
Expand Down

0 comments on commit 53707fb

Please sign in to comment.