{"action":"created","comment":{"url":"https://api.github.com/repos/tux3/qTox/pulls/comments/48630552","id":48630552,"diff_hunk":"@@ -47,7 +45,38 @@ QByteArray Toxme::makeJsonRequest(QString json)\n     return reply->readAll();\n }\n \n-QByteArray Toxme::prepareEncryptedJson(int action, QString payload)\n+QByteArray Toxme::getServerPubkey(QString url)\n+{\n+    // Get key\n+    QNetworkAccessManager netman;\n+    QNetworkRequest request{url};\n+    request.setHeader(QNetworkRequest::ContentTypeHeader, \"application/json\");\n+\n+    QNetworkReply* reply = netman.get(request);\n+    while (!reply->isFinished())\n+        qApp->processEvents();","path":"src/net/toxme.cpp","position":47,"original_position":34,"commit_id":"95ec2db6e87f2420a591bf909641ae702989474e","original_commit_id":"37d0fc56c2b21898dd24d1e9deba3ac608f3bddd","user":{"login":"antis81","id":440517,"avatar_url":"https://avatars.githubusercontent.com/u/440517?v=3","gravatar_id":"","url":"https://api.github.com/users/antis81","html_url":"https://github.com/antis81","followers_url":"https://api.github.com/users/antis81/followers","following_url":"https://api.github.com/users/antis81/following{/other_user}","gists_url":"https://api.github.com/users/antis81/gists{/gist_id}","starred_url":"https://api.github.com/users/antis81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antis81/subscriptions","organizations_url":"https://api.github.com/users/antis81/orgs","repos_url":"https://api.github.com/users/antis81/repos","events_url":"https://api.github.com/users/antis81/events{/privacy}","received_events_url":"https://api.github.com/users/antis81/received_events","type":"User","site_admin":false},"body":"This will make your head (and the processor) spin at 100%… :)\r\n\r\nTry this:\r\n\r\n```c++\r\nwhile (reply->isRunning()) {\r\n    reply->waitForReadyRead(100);\r\n    qApp->processEvents();\r\n}\r\n```","created_at":"2015-12-30T20:50:42Z","updated_at":"2015-12-30T20:50:42Z","html_url":"https://github.com/tux3/qTox/pull/2753#discussion_r48630552","pull_request_url":"https://api.github.com/repos/tux3/qTox/pulls/2753","_links":{"self":{"href":"https://api.github.com/repos/tux3/qTox/pulls/comments/48630552"},"html":{"href":"https://github.com/tux3/qTox/pull/2753#discussion_r48630552"},"pull_request":{"href":"https://api.github.com/repos/tux3/qTox/pulls/2753"}}},"pull_request":{"url":"https://api.github.com/repos/tux3/qTox/pulls/2753","id":54808542,"html_url":"https://github.com/tux3/qTox/pull/2753","diff_url":"https://github.com/tux3/qTox/pull/2753.diff","patch_url":"https://github.com/tux3/qTox/pull/2753.patch","issue_url":"https://api.github.com/repos/tux3/qTox/issues/2753","number":2753,"state":"open","locked":false,"title":"Add Toxme registration","user":{"login":"Diadlo","id":6306608,"avatar_url":"https://avatars.githubusercontent.com/u/6306608?v=3","gravatar_id":"","url":"https://api.github.com/users/Diadlo","html_url":"https://github.com/Diadlo","followers_url":"https://api.github.com/users/Diadlo/followers","following_url":"https://api.github.com/users/Diadlo/following{/other_user}","gists_url":"https://api.github.com/users/Diadlo/gists{/gist_id}","starred_url":"https://api.github.com/users/Diadlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diadlo/subscriptions","organizations_url":"https://api.github.com/users/Diadlo/orgs","repos_url":"https://api.github.com/users/Diadlo/repos","events_url":"https://api.github.com/users/Diadlo/events{/privacy}","received_events_url":"https://api.github.com/users/Diadlo/received_events","type":"User","site_admin":false},"body":"Add ToxDNS/Toxme registration, Add some features in Toxme class and new section in profile form","created_at":"2015-12-30T15:47:43Z","updated_at":"2015-12-30T20:50:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0bfe148d987203e1a4c6395a81e18577eab0dd4","assignee":{"login":"antis81","id":440517,"avatar_url":"https://avatars.githubusercontent.com/u/440517?v=3","gravatar_id":"","url":"https://api.github.com/users/antis81","html_url":"https://github.com/antis81","followers_url":"https://api.github.com/users/antis81/followers","following_url":"https://api.github.com/users/antis81/following{/other_user}","gists_url":"https://api.github.com/users/antis81/gists{/gist_id}","starred_url":"https://api.github.com/users/antis81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antis81/subscriptions","organizations_url":"https://api.github.com/users/antis81/orgs","repos_url":"https://api.github.com/users/antis81/repos","events_url":"https://api.github.com/users/antis81/events{/privacy}","received_events_url":"https://api.github.com/users/antis81/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/tux3/qTox/pulls/2753/commits","review_comments_url":"https://api.github.com/repos/tux3/qTox/pulls/2753/comments","review_comment_url":"https://api.github.com/repos/tux3/qTox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tux3/qTox/issues/2753/comments","statuses_url":"https://api.github.com/repos/tux3/qTox/statuses/95ec2db6e87f2420a591bf909641ae702989474e","head":{"label":"Diadlo:master","ref":"master","sha":"95ec2db6e87f2420a591bf909641ae702989474e","user":{"login":"Diadlo","id":6306608,"avatar_url":"https://avatars.githubusercontent.com/u/6306608?v=3","gravatar_id":"","url":"https://api.github.com/users/Diadlo","html_url":"https://github.com/Diadlo","followers_url":"https://api.github.com/users/Diadlo/followers","following_url":"https://api.github.com/users/Diadlo/following{/other_user}","gists_url":"https://api.github.com/users/Diadlo/gists{/gist_id}","starred_url":"https://api.github.com/users/Diadlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diadlo/subscriptions","organizations_url":"https://api.github.com/users/Diadlo/orgs","repos_url":"https://api.github.com/users/Diadlo/repos","events_url":"https://api.github.com/users/Diadlo/events{/privacy}","received_events_url":"https://api.github.com/users/Diadlo/received_events","type":"User","site_admin":false},"repo":{"id":48807382,"name":"qTox","full_name":"Diadlo/qTox","owner":{"login":"Diadlo","id":6306608,"avatar_url":"https://avatars.githubusercontent.com/u/6306608?v=3","gravatar_id":"","url":"https://api.github.com/users/Diadlo","html_url":"https://github.com/Diadlo","followers_url":"https://api.github.com/users/Diadlo/followers","following_url":"https://api.github.com/users/Diadlo/following{/other_user}","gists_url":"https://api.github.com/users/Diadlo/gists{/gist_id}","starred_url":"https://api.github.com/users/Diadlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Diadlo/subscriptions","organizations_url":"https://api.github.com/users/Diadlo/orgs","repos_url":"https://api.github.com/users/Diadlo/repos","events_url":"https://api.github.com/users/Diadlo/events{/privacy}","received_events_url":"https://api.github.com/users/Diadlo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Diadlo/qTox","description":"Powerful Tox chat client that follows the Tox design guidelines.","fork":true,"url":"https://api.github.com/repos/Diadlo/qTox","forks_url":"https://api.github.com/repos/Diadlo/qTox/forks","keys_url":"https://api.github.com/repos/Diadlo/qTox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Diadlo/qTox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Diadlo/qTox/teams","hooks_url":"https://api.github.com/repos/Diadlo/qTox/hooks","issue_events_url":"https://api.github.com/repos/Diadlo/qTox/issues/events{/number}","events_url":"https://api.github.com/repos/Diadlo/qTox/events","assignees_url":"https://api.github.com/repos/Diadlo/qTox/assignees{/user}","branches_url":"https://api.github.com/repos/Diadlo/qTox/branches{/branch}","tags_url":"https://api.github.com/repos/Diadlo/qTox/tags","blobs_url":"https://api.github.com/repos/Diadlo/qTox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Diadlo/qTox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Diadlo/qTox/git/refs{/sha}","trees_url":"https://api.github.com/repos/Diadlo/qTox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Diadlo/qTox/statuses/{sha}","languages_url":"https://api.github.com/repos/Diadlo/qTox/languages","stargazers_url":"https://api.github.com/repos/Diadlo/qTox/stargazers","contributors_url":"https://api.github.com/repos/Diadlo/qTox/contributors","subscribers_url":"https://api.github.com/repos/Diadlo/qTox/subscribers","subscription_url":"https://api.github.com/repos/Diadlo/qTox/subscription","commits_url":"https://api.github.com/repos/Diadlo/qTox/commits{/sha}","git_commits_url":"https://api.github.com/repos/Diadlo/qTox/git/commits{/sha}","comments_url":"https://api.github.com/repos/Diadlo/qTox/comments{/number}","issue_comment_url":"https://api.github.com/repos/Diadlo/qTox/issues/comments{/number}","contents_url":"https://api.github.com/repos/Diadlo/qTox/contents/{+path}","compare_url":"https://api.github.com/repos/Diadlo/qTox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Diadlo/qTox/merges","archive_url":"https://api.github.com/repos/Diadlo/qTox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Diadlo/qTox/downloads","issues_url":"https://api.github.com/repos/Diadlo/qTox/issues{/number}","pulls_url":"https://api.github.com/repos/Diadlo/qTox/pulls{/number}","milestones_url":"https://api.github.com/repos/Diadlo/qTox/milestones{/number}","notifications_url":"https://api.github.com/repos/Diadlo/qTox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Diadlo/qTox/labels{/name}","releases_url":"https://api.github.com/repos/Diadlo/qTox/releases{/id}","created_at":"2015-12-30T15:41:12Z","updated_at":"2015-12-30T15:41:14Z","pushed_at":"2015-12-30T20:50:04Z","git_url":"git://github.com/Diadlo/qTox.git","ssh_url":"git@github.com:Diadlo/qTox.git","clone_url":"https://github.com/Diadlo/qTox.git","svn_url":"https://github.com/Diadlo/qTox","homepage":"","size":18484,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"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":"tux3:master","ref":"master","sha":"f70b249ed8c101fbaf056336153bdf94bfcd2d29","user":{"login":"tux3","id":5155966,"avatar_url":"https://avatars.githubusercontent.com/u/5155966?v=3","gravatar_id":"","url":"https://api.github.com/users/tux3","html_url":"https://github.com/tux3","followers_url":"https://api.github.com/users/tux3/followers","following_url":"https://api.github.com/users/tux3/following{/other_user}","gists_url":"https://api.github.com/users/tux3/gists{/gist_id}","starred_url":"https://api.github.com/users/tux3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tux3/subscriptions","organizations_url":"https://api.github.com/users/tux3/orgs","repos_url":"https://api.github.com/users/tux3/repos","events_url":"https://api.github.com/users/tux3/events{/privacy}","received_events_url":"https://api.github.com/users/tux3/received_events","type":"User","site_admin":false},"repo":{"id":21179164,"name":"qTox","full_name":"tux3/qTox","owner":{"login":"tux3","id":5155966,"avatar_url":"https://avatars.githubusercontent.com/u/5155966?v=3","gravatar_id":"","url":"https://api.github.com/users/tux3","html_url":"https://github.com/tux3","followers_url":"https://api.github.com/users/tux3/followers","following_url":"https://api.github.com/users/tux3/following{/other_user}","gists_url":"https://api.github.com/users/tux3/gists{/gist_id}","starred_url":"https://api.github.com/users/tux3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tux3/subscriptions","organizations_url":"https://api.github.com/users/tux3/orgs","repos_url":"https://api.github.com/users/tux3/repos","events_url":"https://api.github.com/users/tux3/events{/privacy}","received_events_url":"https://api.github.com/users/tux3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tux3/qTox","description":"Powerful Tox chat client that follows the Tox design guidelines.","fork":false,"url":"https://api.github.com/repos/tux3/qTox","forks_url":"https://api.github.com/repos/tux3/qTox/forks","keys_url":"https://api.github.com/repos/tux3/qTox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tux3/qTox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tux3/qTox/teams","hooks_url":"https://api.github.com/repos/tux3/qTox/hooks","issue_events_url":"https://api.github.com/repos/tux3/qTox/issues/events{/number}","events_url":"https://api.github.com/repos/tux3/qTox/events","assignees_url":"https://api.github.com/repos/tux3/qTox/assignees{/user}","branches_url":"https://api.github.com/repos/tux3/qTox/branches{/branch}","tags_url":"https://api.github.com/repos/tux3/qTox/tags","blobs_url":"https://api.github.com/repos/tux3/qTox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tux3/qTox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tux3/qTox/git/refs{/sha}","trees_url":"https://api.github.com/repos/tux3/qTox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tux3/qTox/statuses/{sha}","languages_url":"https://api.github.com/repos/tux3/qTox/languages","stargazers_url":"https://api.github.com/repos/tux3/qTox/stargazers","contributors_url":"https://api.github.com/repos/tux3/qTox/contributors","subscribers_url":"https://api.github.com/repos/tux3/qTox/subscribers","subscription_url":"https://api.github.com/repos/tux3/qTox/subscription","commits_url":"https://api.github.com/repos/tux3/qTox/commits{/sha}","git_commits_url":"https://api.github.com/repos/tux3/qTox/git/commits{/sha}","comments_url":"https://api.github.com/repos/tux3/qTox/comments{/number}","issue_comment_url":"https://api.github.com/repos/tux3/qTox/issues/comments{/number}","contents_url":"https://api.github.com/repos/tux3/qTox/contents/{+path}","compare_url":"https://api.github.com/repos/tux3/qTox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tux3/qTox/merges","archive_url":"https://api.github.com/repos/tux3/qTox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tux3/qTox/downloads","issues_url":"https://api.github.com/repos/tux3/qTox/issues{/number}","pulls_url":"https://api.github.com/repos/tux3/qTox/pulls{/number}","milestones_url":"https://api.github.com/repos/tux3/qTox/milestones{/number}","notifications_url":"https://api.github.com/repos/tux3/qTox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tux3/qTox/labels{/name}","releases_url":"https://api.github.com/repos/tux3/qTox/releases{/id}","created_at":"2014-06-24T20:09:04Z","updated_at":"2015-12-30T18:05:28Z","pushed_at":"2015-12-30T20:50:04Z","git_url":"git://github.com/tux3/qTox.git","ssh_url":"git@github.com:tux3/qTox.git","clone_url":"https://github.com/tux3/qTox.git","svn_url":"https://github.com/tux3/qTox","homepage":"","size":20469,"stargazers_count":735,"watchers_count":735,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":233,"mirror_url":null,"open_issues_count":452,"forks":233,"open_issues":452,"watchers":735,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tux3/qTox/pulls/2753"},"html":{"href":"https://github.com/tux3/qTox/pull/2753"},"issue":{"href":"https://api.github.com/repos/tux3/qTox/issues/2753"},"comments":{"href":"https://api.github.com/repos/tux3/qTox/issues/2753/comments"},"review_comments":{"href":"https://api.github.com/repos/tux3/qTox/pulls/2753/comments"},"review_comment":{"href":"https://api.github.com/repos/tux3/qTox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tux3/qTox/pulls/2753/commits"},"statuses":{"href":"https://api.github.com/repos/tux3/qTox/statuses/95ec2db6e87f2420a591bf909641ae702989474e"}}}}