summaryrefslogtreecommitdiff
path: root/controllers/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'controllers/auth.php')
-rw-r--r--controllers/auth.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/controllers/auth.php b/controllers/auth.php
index abbe3b9..13081c4 100644
--- a/controllers/auth.php
+++ b/controllers/auth.php
@@ -235,6 +235,10 @@ $app->get('/auth/callback', function() use($app) {
$user->micropub_response = $token['response'];
$user->save();
$_SESSION['user_id'] = $user->id();
+
+ // Make a request to the micropub endpoint to discover the syndication targets if any.
+ // Errors are silently ignored here. The user will be able to retry from the new post interface and get feedback.
+ get_syndication_targets($user);
}
unset($_SESSION['auth_state']);