summaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'controllers')
-rw-r--r--controllers/controllers.php1
-rw-r--r--controllers/micropub.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/controllers/controllers.php b/controllers/controllers.php
index 2cbe56e..bf1cb86 100644
--- a/controllers/controllers.php
+++ b/controllers/controllers.php
@@ -72,6 +72,7 @@ $app->get('/new', function() use($app) {
'micropub_access_token' => $user->micropub_access_token,
'response_date' => $user->last_micropub_response_date,
'syndication_targets' => json_decode($user->syndication_targets, true),
+ 'supported_visibility' => json_decode($user->supported_visibility, true),
'location_enabled' => $user->location_enabled,
'user' => $user,
'authorizing' => false
diff --git a/controllers/micropub.php b/controllers/micropub.php
index a6ec9d5..fa8e477 100644
--- a/controllers/micropub.php
+++ b/controllers/micropub.php
@@ -2,7 +2,7 @@
$app->get('/micropub/syndications', function() use($app) {
if($user=require_login($app)) {
- $data = get_micropub_config($user, ['q'=>'syndicate-to']);
+ $data = get_micropub_config($user);
$app->response()['Content-type'] = 'application/json';
$app->response()->body(json_encode(array(
'targets' => $data['targets'],