diff --git a/Classes/UVArticle.m b/Classes/UVArticle.m index 0860c8df..1819d057 100644 --- a/Classes/UVArticle.m +++ b/Classes/UVArticle.m @@ -19,7 +19,7 @@ @implementation UVArticle + (id)getArticlesWithTopicId:(NSInteger)topicId page:(NSInteger)page delegate:(id)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 @@ -29,7 +29,7 @@ + (id)getArticlesWithTopicId:(NSInteger)topicId page:(NSInteger)page delegate:(i + (id)getArticlesWithPage:(NSInteger)page delegate:(id)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