summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/DiscoverViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/ViewControllers/DiscoverViewController.m')
-rw-r--r--Juick/ViewControllers/DiscoverViewController.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m
index edbd152..ea720be 100644
--- a/Juick/ViewControllers/DiscoverViewController.m
+++ b/Juick/ViewControllers/DiscoverViewController.m
@@ -24,8 +24,8 @@
-(void) viewDidLoad {
self.messagesDelegate = self;
if ([User isAuthenticated]) {
- [[APIClient sharedClient] authenticate:^(BOOL success) {
- if (success) {
+ [[APIClient sharedClient] authenticate:^(User *user, NSError *error) {
+ if (user) {
if ([self.path length] == 0) {
self.path = [APIClient feedUrl];
[self.tabBarItem setTitle:@"My feed"];
@@ -34,7 +34,7 @@
[self setShouldScrollToBottomOnRefresh:NO];
[self refreshData];
} else {
- [User throwUnableToLogin:self];
+ [User throwUnableToLogin:self error:error];
}
}];