summaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2019-09-29 15:36:59 +0200
committerAaron Parecki <aaron@parecki.com>2019-09-29 15:36:59 +0200
commitf0c5635c2f072448808f35990b7f8abd84b9607d (patch)
tree47984c59c55a834c2ca2c2ae4388df2a6a5b6857 /controllers
parentefe16c375a202cff5c2b07e3c7fb273a2e8bec16 (diff)
add a dropdown to choose post visibility
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'],