diff --git a/controllers/controllers.php b/controllers/controllers.php index cc74674..a5fb5be 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -483,6 +483,7 @@ $app->get('/settings', function() use($app) { render('settings', [ 'title' => 'Settings', 'user' => $user, + 'syndication_targets' => json_decode($user->syndication_targets, true), 'authorizing' => false ]); } diff --git a/views/new-bookmark.php b/views/new-bookmark.php index 35e1907..0181dae 100644 --- a/views/new-bookmark.php +++ b/views/new-bookmark.php @@ -32,11 +32,11 @@ + syndication_targets): ?>
Connecting a Twitter account will automatically "favorite" and "retweet" tweets on Twitter when you favorite and retweet a Twitter URL in Quill.
+You can customize some of the properties that are sent in the Micropub request to work with your specific endpoint.
@@ -139,5 +167,25 @@ $(function(){ }); }); + + }); + +function reload_syndications() { + $.getJSON("/micropub/syndications", function(data){ + if(data.targets) { + $("#syndication-container").html('