diff options
author | Aaron Parecki <aaron@parecki.com> | 2017-01-17 09:24:41 -0800 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2017-01-17 09:24:41 -0800 |
commit | 0e8ee9973a550a3ab0a2069d9a12b683651b7d9b (patch) | |
tree | a6f5449d8dd09e815ad659396a1aaa350354215e /views/new-post.php | |
parent | 3bdcd009c8817df5275041d5c4d72c716d660456 (diff) |
use `mp-syndicate-to` by default, add setting
* adds setting to choose the property to use for the syndication targets
* all existing users default to the old value `syndicate-to`
* new users default to `mp-syndicate-to`
closes #66
Diffstat (limited to 'views/new-post.php')
-rw-r--r-- | views/new-post.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/new-post.php b/views/new-post.php index 7059c5e..57a2ffa 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -429,7 +429,7 @@ $(function(){ } if(syndications.length > 0) { for(var i in syndications) { - formData.append("syndicate-to[]", syndications[i]); + formData.append("<?= $this->user->micropub_syndicate_field ?>[]", syndications[i]); } } if(v=$("#note_slug").val()) { @@ -485,7 +485,7 @@ $(function(){ location: $("#note_location").val(), category: category, slug: $("#note_slug").val(), - 'syndicate-to': syndications + '<?= $this->user->micropub_syndicate_field ?>': syndications }, function(data){ var response = JSON.parse(data); |