diff --git a/controllers/editor.php b/controllers/editor.php index 191885a..936af75 100644 --- a/controllers/editor.php +++ b/controllers/editor.php @@ -51,6 +51,11 @@ $app->post('/editor/publish', function() use($app) { $micropub_request['post-status'] = $params['status']; } + if(array_key_exists('syndicate', $params) && $params['syndicate']) { + if($params['syndicate'] == 'yes') + $micropub_request['mp_syndicate_to'] = "gts"; + } + if(array_key_exists('publish', $params) && $params['publish'] != 'now') { $micropub_request['published'] = $params['publish']; } diff --git a/views/editor.php b/views/editor.php index cfbf4ab..dad012e 100644 --- a/views/editor.php +++ b/views/editor.php @@ -107,27 +107,6 @@ - - - - - - syndication_targets) { - echo ''; - } - ?> - - Publish: @@ -165,6 +144,5 @@ -