{"action":"created","comment":{"url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls/comments/119074659","pull_request_review_id":40920602,"id":119074659,"diff_hunk":"@@ -0,0 +1,42 @@\n+<?php\n+\n+header('Content-Type: application/json; charset=utf-8');\n+\n+$id = $_GET['id'];\n+if (empty($id)) {\n+\techo  json_encode(array(\n+\t\t'status' => 'error',\n+\t\t'message' => 'no id received'\n+\t));\n+\texit();\n+}\n+\n+$view = \\OC\\Files\\Filesystem::getView();\n+\n+try {\n+\t$path = $view->getPath($id);\n+} catch (\\Exception $e) {\n+\techo  json_encode(array(\n+\t\t'status' => 'error',\n+\t\t'message' => 'file does not exist'\n+\t));\n+\texit();\n+}\n+\n+$path = $view->getPath($id);","path":"ajax/generateDocumentChat.php","position":26,"original_position":26,"commit_id":"c78484f7c7322d7c0ddbc51bd7e72ccb7fc08280","original_commit_id":"c78484f7c7322d7c0ddbc51bd7e72ccb7fc08280","user":{"login":"sualko","id":2974196,"avatar_url":"https://avatars0.githubusercontent.com/u/2974196?v=3","gravatar_id":"","url":"https://api.github.com/users/sualko","html_url":"https://github.com/sualko","followers_url":"https://api.github.com/users/sualko/followers","following_url":"https://api.github.com/users/sualko/following{/other_user}","gists_url":"https://api.github.com/users/sualko/gists{/gist_id}","starred_url":"https://api.github.com/users/sualko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sualko/subscriptions","organizations_url":"https://api.github.com/users/sualko/orgs","repos_url":"https://api.github.com/users/sualko/repos","events_url":"https://api.github.com/users/sualko/events{/privacy}","received_events_url":"https://api.github.com/users/sualko/received_events","type":"User","site_admin":false},"body":"`$path` should already be defined","created_at":"2017-05-30T11:34:51Z","updated_at":"2017-05-30T11:34:51Z","html_url":"https://github.com/nextcloud/jsxc.nextcloud/pull/8#discussion_r119074659","pull_request_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls/comments/119074659"},"html":{"href":"https://github.com/nextcloud/jsxc.nextcloud/pull/8#discussion_r119074659"},"pull_request":{"href":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls/8","id":112272227,"html_url":"https://github.com/nextcloud/jsxc.nextcloud/pull/8","diff_url":"https://github.com/nextcloud/jsxc.nextcloud/pull/8.diff","patch_url":"https://github.com/nextcloud/jsxc.nextcloud/pull/8.patch","issue_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/issues/8","number":8,"state":"open","locked":false,"title":"add document chat for nextcloud","user":{"login":"coyoty","id":5663364,"avatar_url":"https://avatars0.githubusercontent.com/u/5663364?v=3","gravatar_id":"","url":"https://api.github.com/users/coyoty","html_url":"https://github.com/coyoty","followers_url":"https://api.github.com/users/coyoty/followers","following_url":"https://api.github.com/users/coyoty/following{/other_user}","gists_url":"https://api.github.com/users/coyoty/gists{/gist_id}","starred_url":"https://api.github.com/users/coyoty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coyoty/subscriptions","organizations_url":"https://api.github.com/users/coyoty/orgs","repos_url":"https://api.github.com/users/coyoty/repos","events_url":"https://api.github.com/users/coyoty/events{/privacy}","received_events_url":"https://api.github.com/users/coyoty/received_events","type":"User","site_admin":false},"body":"this code creates an entry in the jsxc menu when a document has the necesary data to create a room, it also removes the entry in the menu when the user leaves the document\r\n\r\nfix jsxc/jsxc#335","created_at":"2017-03-23T15:52:44Z","updated_at":"2017-05-30T11:34:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34570552a82db662a514d1aa490a02b60a065818","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls/8/commits","review_comments_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls/8/comments","review_comment_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/issues/8/comments","statuses_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/statuses/c78484f7c7322d7c0ddbc51bd7e72ccb7fc08280","head":{"label":"coyoty:master","ref":"master","sha":"c78484f7c7322d7c0ddbc51bd7e72ccb7fc08280","user":{"login":"coyoty","id":5663364,"avatar_url":"https://avatars0.githubusercontent.com/u/5663364?v=3","gravatar_id":"","url":"https://api.github.com/users/coyoty","html_url":"https://github.com/coyoty","followers_url":"https://api.github.com/users/coyoty/followers","following_url":"https://api.github.com/users/coyoty/following{/other_user}","gists_url":"https://api.github.com/users/coyoty/gists{/gist_id}","starred_url":"https://api.github.com/users/coyoty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coyoty/subscriptions","organizations_url":"https://api.github.com/users/coyoty/orgs","repos_url":"https://api.github.com/users/coyoty/repos","events_url":"https://api.github.com/users/coyoty/events{/privacy}","received_events_url":"https://api.github.com/users/coyoty/received_events","type":"User","site_admin":false},"repo":{"id":85966363,"name":"jsxc.nextcloud","full_name":"coyoty/jsxc.nextcloud","owner":{"login":"coyoty","id":5663364,"avatar_url":"https://avatars0.githubusercontent.com/u/5663364?v=3","gravatar_id":"","url":"https://api.github.com/users/coyoty","html_url":"https://github.com/coyoty","followers_url":"https://api.github.com/users/coyoty/followers","following_url":"https://api.github.com/users/coyoty/following{/other_user}","gists_url":"https://api.github.com/users/coyoty/gists{/gist_id}","starred_url":"https://api.github.com/users/coyoty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coyoty/subscriptions","organizations_url":"https://api.github.com/users/coyoty/orgs","repos_url":"https://api.github.com/users/coyoty/repos","events_url":"https://api.github.com/users/coyoty/events{/privacy}","received_events_url":"https://api.github.com/users/coyoty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coyoty/jsxc.nextcloud","description":"XMPP chat client for Nextcloud with end-to-end encryption, video calls, file transfer and group chat","fork":true,"url":"https://api.github.com/repos/coyoty/jsxc.nextcloud","forks_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/forks","keys_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/teams","hooks_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/hooks","issue_events_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/issues/events{/number}","events_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/events","assignees_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/assignees{/user}","branches_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/branches{/branch}","tags_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/tags","blobs_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/statuses/{sha}","languages_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/languages","stargazers_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/stargazers","contributors_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/contributors","subscribers_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/subscribers","subscription_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/subscription","commits_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/contents/{+path}","compare_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/merges","archive_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/downloads","issues_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/issues{/number}","pulls_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/pulls{/number}","milestones_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/milestones{/number}","notifications_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/labels{/name}","releases_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/releases{/id}","deployments_url":"https://api.github.com/repos/coyoty/jsxc.nextcloud/deployments","created_at":"2017-03-23T15:32:43Z","updated_at":"2017-03-23T15:32:48Z","pushed_at":"2017-04-10T14:02:37Z","git_url":"git://github.com/coyoty/jsxc.nextcloud.git","ssh_url":"git@github.com:coyoty/jsxc.nextcloud.git","clone_url":"https://github.com/coyoty/jsxc.nextcloud.git","svn_url":"https://github.com/coyoty/jsxc.nextcloud","homepage":null,"size":14369,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"nextcloud:master","ref":"master","sha":"a2c8d21121c0b0aeb6024d04961d5809481b52f1","user":{"login":"nextcloud","id":19211038,"avatar_url":"https://avatars2.githubusercontent.com/u/19211038?v=3","gravatar_id":"","url":"https://api.github.com/users/nextcloud","html_url":"https://github.com/nextcloud","followers_url":"https://api.github.com/users/nextcloud/followers","following_url":"https://api.github.com/users/nextcloud/following{/other_user}","gists_url":"https://api.github.com/users/nextcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/nextcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nextcloud/subscriptions","organizations_url":"https://api.github.com/users/nextcloud/orgs","repos_url":"https://api.github.com/users/nextcloud/repos","events_url":"https://api.github.com/users/nextcloud/events{/privacy}","received_events_url":"https://api.github.com/users/nextcloud/received_events","type":"Organization","site_admin":false},"repo":{"id":76862248,"name":"jsxc.nextcloud","full_name":"nextcloud/jsxc.nextcloud","owner":{"login":"nextcloud","id":19211038,"avatar_url":"https://avatars2.githubusercontent.com/u/19211038?v=3","gravatar_id":"","url":"https://api.github.com/users/nextcloud","html_url":"https://github.com/nextcloud","followers_url":"https://api.github.com/users/nextcloud/followers","following_url":"https://api.github.com/users/nextcloud/following{/other_user}","gists_url":"https://api.github.com/users/nextcloud/gists{/gist_id}","starred_url":"https://api.github.com/users/nextcloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nextcloud/subscriptions","organizations_url":"https://api.github.com/users/nextcloud/orgs","repos_url":"https://api.github.com/users/nextcloud/repos","events_url":"https://api.github.com/users/nextcloud/events{/privacy}","received_events_url":"https://api.github.com/users/nextcloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nextcloud/jsxc.nextcloud","description":"💬 Chat app for Nextcloud with XMPP, end-to-end encryption, video calls, file transfer & group chat","fork":false,"url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud","forks_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/forks","keys_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/teams","hooks_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/hooks","issue_events_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/issues/events{/number}","events_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/events","assignees_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/assignees{/user}","branches_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/branches{/branch}","tags_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/tags","blobs_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/statuses/{sha}","languages_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/languages","stargazers_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/stargazers","contributors_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/contributors","subscribers_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/subscribers","subscription_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/subscription","commits_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/contents/{+path}","compare_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/merges","archive_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/downloads","issues_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/issues{/number}","pulls_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls{/number}","milestones_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/milestones{/number}","notifications_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/labels{/name}","releases_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/releases{/id}","deployments_url":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/deployments","created_at":"2016-12-19T12:55:31Z","updated_at":"2017-05-08T12:34:06Z","pushed_at":"2017-05-30T06:47:21Z","git_url":"git://github.com/nextcloud/jsxc.nextcloud.git","ssh_url":"git@github.com:nextcloud/jsxc.nextcloud.git","clone_url":"https://github.com/nextcloud/jsxc.nextcloud.git","svn_url":"https://github.com/nextcloud/jsxc.nextcloud","homepage":"https://apps.nextcloud.com/apps/ojsxc","size":15126,"stargazers_count":11,"watchers_count":11,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls/8"},"html":{"href":"https://github.com/nextcloud/jsxc.nextcloud/pull/8"},"issue":{"href":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/issues/8"},"comments":{"href":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/nextcloud/jsxc.nextcloud/statuses/c78484f7c7322d7c0ddbc51bd7e72ccb7fc08280"}}}}
{"actor":{"display_login":"sualko"}}