diff options
author | Aaron Parecki <aaron@parecki.com> | 2014-07-06 18:28:18 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2014-07-06 18:28:18 -0700 |
commit | 592eac5d8dc4c704bfb34915c0703fc2aecc6d46 (patch) | |
tree | a9875ed88b33674da0571c0ad8007c01eda07f23 /controllers/auth.php | |
parent | b2337158a38b7dfda6d5c4e3c5f0dd4ae9f4845d (diff) |
Adds support for querying your micropub endpoint to check for syndication targets.
This changes the value of "in-reply-to" to use hyphens instead of underscore separators!!
Also shows you the full request made to your micropub endpoint.
Diffstat (limited to 'controllers/auth.php')
-rw-r--r-- | controllers/auth.php | 4 |
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']); |