{"action":"created","comment":{"url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls/comments/75370823","id":75370823,"diff_hunk":"@@ -43,6 +43,11 @@ app.use('/micropub/:targetsite', micropub({\n   tokenReference: function (req) {\n     return (req.targetsite.token || []).concat(config.token);\n   },\n+  queryHandler: function (q, req) {\n+    if (q === 'syndicate-to' && req.targetsite.syndicateTo) {\n+      return { 'syndicate-to': req.targetsite.syndicateTo };","path":"lib/main.js","position":6,"original_position":6,"commit_id":"463db6ddae2ff4a1ab0e9ba664752696ef0e596b","original_commit_id":"463db6ddae2ff4a1ab0e9ba664752696ef0e596b","user":{"login":"voxpelli","id":34457,"avatar_url":"https://avatars.githubusercontent.com/u/34457?v=3","gravatar_id":"","url":"https://api.github.com/users/voxpelli","html_url":"https://github.com/voxpelli","followers_url":"https://api.github.com/users/voxpelli/followers","following_url":"https://api.github.com/users/voxpelli/following{/other_user}","gists_url":"https://api.github.com/users/voxpelli/gists{/gist_id}","starred_url":"https://api.github.com/users/voxpelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxpelli/subscriptions","organizations_url":"https://api.github.com/users/voxpelli/orgs","repos_url":"https://api.github.com/users/voxpelli/repos","events_url":"https://api.github.com/users/voxpelli/events{/privacy}","received_events_url":"https://api.github.com/users/voxpelli/received_events","type":"User","site_admin":false},"body":"If you want to try going the the full on deluxe version of things, then you could try to make an automated test for yourself in `test/` :)\r\n\r\nI myself find that very handy when I don't have the code live anywhere or for any reason don't have a separate client that I can easily repeat the tests for. And the bonus is that I then know that I'll never break the code for that specific request in the future.\r\n\r\nBut I guess it can be a bit hard to figure out how to do that for this as this project hasn't really done any tests for `queryHandler`:s before, so if I were you I would skip it.","created_at":"2016-08-18T19:13:37Z","updated_at":"2016-08-18T19:13:37Z","html_url":"https://github.com/voxpelli/webpage-micropub-to-github/pull/9#discussion_r75370823","pull_request_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls/comments/75370823"},"html":{"href":"https://github.com/voxpelli/webpage-micropub-to-github/pull/9#discussion_r75370823"},"pull_request":{"href":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls/9","id":81868962,"html_url":"https://github.com/voxpelli/webpage-micropub-to-github/pull/9","diff_url":"https://github.com/voxpelli/webpage-micropub-to-github/pull/9.diff","patch_url":"https://github.com/voxpelli/webpage-micropub-to-github/pull/9.patch","issue_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/issues/9","number":9,"state":"open","locked":false,"title":"allow for syndicate-to links eventually in user env variable","user":{"login":"miklb","id":819716,"avatar_url":"https://avatars.githubusercontent.com/u/819716?v=3","gravatar_id":"","url":"https://api.github.com/users/miklb","html_url":"https://github.com/miklb","followers_url":"https://api.github.com/users/miklb/followers","following_url":"https://api.github.com/users/miklb/following{/other_user}","gists_url":"https://api.github.com/users/miklb/gists{/gist_id}","starred_url":"https://api.github.com/users/miklb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miklb/subscriptions","organizations_url":"https://api.github.com/users/miklb/orgs","repos_url":"https://api.github.com/users/miklb/repos","events_url":"https://api.github.com/users/miklb/events{/privacy}","received_events_url":"https://api.github.com/users/miklb/received_events","type":"User","site_admin":false},"body":"Currently I am adding the links to `sites.js` \r\n\r\n```\r\nsyndicateTo: [\r\n     {\r\n       uid: 'https://brid.gy/publish/twitter',\r\n       name: 'Bridgy: Twitter'\r\n     },\r\n    ]\r\n```\r\nthat is the minimum needed for Quill to recognize.","created_at":"2016-08-18T18:57:00Z","updated_at":"2016-08-18T19:13:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9470861f67d2af626419d9bc66e93ad5b05a4e93","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls/9/commits","review_comments_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls/9/comments","review_comment_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls/comments{/number}","comments_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/issues/9/comments","statuses_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/statuses/463db6ddae2ff4a1ab0e9ba664752696ef0e596b","head":{"label":"miklb:syndicateTo","ref":"syndicateTo","sha":"463db6ddae2ff4a1ab0e9ba664752696ef0e596b","user":{"login":"miklb","id":819716,"avatar_url":"https://avatars.githubusercontent.com/u/819716?v=3","gravatar_id":"","url":"https://api.github.com/users/miklb","html_url":"https://github.com/miklb","followers_url":"https://api.github.com/users/miklb/followers","following_url":"https://api.github.com/users/miklb/following{/other_user}","gists_url":"https://api.github.com/users/miklb/gists{/gist_id}","starred_url":"https://api.github.com/users/miklb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miklb/subscriptions","organizations_url":"https://api.github.com/users/miklb/orgs","repos_url":"https://api.github.com/users/miklb/repos","events_url":"https://api.github.com/users/miklb/events{/privacy}","received_events_url":"https://api.github.com/users/miklb/received_events","type":"User","site_admin":false},"repo":{"id":66020146,"name":"webpage-micropub-to-github","full_name":"miklb/webpage-micropub-to-github","owner":{"login":"miklb","id":819716,"avatar_url":"https://avatars.githubusercontent.com/u/819716?v=3","gravatar_id":"","url":"https://api.github.com/users/miklb","html_url":"https://github.com/miklb","followers_url":"https://api.github.com/users/miklb/followers","following_url":"https://api.github.com/users/miklb/following{/other_user}","gists_url":"https://api.github.com/users/miklb/gists{/gist_id}","starred_url":"https://api.github.com/users/miklb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miklb/subscriptions","organizations_url":"https://api.github.com/users/miklb/orgs","repos_url":"https://api.github.com/users/miklb/repos","events_url":"https://api.github.com/users/miklb/events{/privacy}","received_events_url":"https://api.github.com/users/miklb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miklb/webpage-micropub-to-github","description":"Self-hosteable Micropub endpoint that publishes to Jekyll by committing to GitHub","fork":true,"url":"https://api.github.com/repos/miklb/webpage-micropub-to-github","forks_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/forks","keys_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/teams","hooks_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/hooks","issue_events_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/issues/events{/number}","events_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/events","assignees_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/assignees{/user}","branches_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/branches{/branch}","tags_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/tags","blobs_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/statuses/{sha}","languages_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/languages","stargazers_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/stargazers","contributors_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/contributors","subscribers_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/subscribers","subscription_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/subscription","commits_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/contents/{+path}","compare_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/merges","archive_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/downloads","issues_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/issues{/number}","pulls_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/pulls{/number}","milestones_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/milestones{/number}","notifications_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/labels{/name}","releases_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/releases{/id}","deployments_url":"https://api.github.com/repos/miklb/webpage-micropub-to-github/deployments","created_at":"2016-08-18T18:12:30Z","updated_at":"2016-08-18T18:12:32Z","pushed_at":"2016-08-18T18:52:19Z","git_url":"git://github.com/miklb/webpage-micropub-to-github.git","ssh_url":"git@github.com:miklb/webpage-micropub-to-github.git","clone_url":"https://github.com/miklb/webpage-micropub-to-github.git","svn_url":"https://github.com/miklb/webpage-micropub-to-github","homepage":"","size":64,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"voxpelli:master","ref":"master","sha":"ee672f6d26812f425a431bd983bab3e09fd65908","user":{"login":"voxpelli","id":34457,"avatar_url":"https://avatars.githubusercontent.com/u/34457?v=3","gravatar_id":"","url":"https://api.github.com/users/voxpelli","html_url":"https://github.com/voxpelli","followers_url":"https://api.github.com/users/voxpelli/followers","following_url":"https://api.github.com/users/voxpelli/following{/other_user}","gists_url":"https://api.github.com/users/voxpelli/gists{/gist_id}","starred_url":"https://api.github.com/users/voxpelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxpelli/subscriptions","organizations_url":"https://api.github.com/users/voxpelli/orgs","repos_url":"https://api.github.com/users/voxpelli/repos","events_url":"https://api.github.com/users/voxpelli/events{/privacy}","received_events_url":"https://api.github.com/users/voxpelli/received_events","type":"User","site_admin":false},"repo":{"id":38318510,"name":"webpage-micropub-to-github","full_name":"voxpelli/webpage-micropub-to-github","owner":{"login":"voxpelli","id":34457,"avatar_url":"https://avatars.githubusercontent.com/u/34457?v=3","gravatar_id":"","url":"https://api.github.com/users/voxpelli","html_url":"https://github.com/voxpelli","followers_url":"https://api.github.com/users/voxpelli/followers","following_url":"https://api.github.com/users/voxpelli/following{/other_user}","gists_url":"https://api.github.com/users/voxpelli/gists{/gist_id}","starred_url":"https://api.github.com/users/voxpelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voxpelli/subscriptions","organizations_url":"https://api.github.com/users/voxpelli/orgs","repos_url":"https://api.github.com/users/voxpelli/repos","events_url":"https://api.github.com/users/voxpelli/events{/privacy}","received_events_url":"https://api.github.com/users/voxpelli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/voxpelli/webpage-micropub-to-github","description":"Self-hosteable Micropub endpoint that publishes to Jekyll by committing to GitHub","fork":false,"url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github","forks_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/forks","keys_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/teams","hooks_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/hooks","issue_events_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/issues/events{/number}","events_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/events","assignees_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/assignees{/user}","branches_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/branches{/branch}","tags_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/tags","blobs_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/statuses/{sha}","languages_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/languages","stargazers_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/stargazers","contributors_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/contributors","subscribers_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/subscribers","subscription_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/subscription","commits_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/contents/{+path}","compare_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/merges","archive_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/downloads","issues_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/issues{/number}","pulls_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls{/number}","milestones_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/milestones{/number}","notifications_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/labels{/name}","releases_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/releases{/id}","deployments_url":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/deployments","created_at":"2015-06-30T15:51:56Z","updated_at":"2016-07-13T16:43:27Z","pushed_at":"2016-08-18T18:57:00Z","git_url":"git://github.com/voxpelli/webpage-micropub-to-github.git","ssh_url":"git@github.com:voxpelli/webpage-micropub-to-github.git","clone_url":"https://github.com/voxpelli/webpage-micropub-to-github.git","svn_url":"https://github.com/voxpelli/webpage-micropub-to-github","homepage":"","size":65,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls/9"},"html":{"href":"https://github.com/voxpelli/webpage-micropub-to-github/pull/9"},"issue":{"href":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/issues/9"},"comments":{"href":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/voxpelli/webpage-micropub-to-github/statuses/463db6ddae2ff4a1ab0e9ba664752696ef0e596b"}}}}
{"actor":{"display_login":"voxpelli"}}