From f0c5635c2f072448808f35990b7f8abd84b9607d Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sun, 29 Sep 2019 15:36:59 +0200 Subject: add a dropdown to choose post visibility --- controllers/controllers.php | 1 + controllers/micropub.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'controllers') 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'], -- cgit v1.2.3