{"action":"created","comment":{"url":"https://api.github.com/repos/illright/innopoints-backend/pulls/comments/363266150","pull_request_review_id":338606919,"id":363266150,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2MzI2NjE1MA==","diff_hunk":"@@ -223,3 +247,37 @@ def change_telegram(email):\n         abort(400, {'message': 'Data integrity violated.'})\n \n     return NO_PAYLOAD\n+\n+\n+@api.route('/account/notification_settings', methods=['PATCH'], defaults={'email': None})\n+@api.route('/account/<email>/notification_settings', methods=['PATCH'])\n+@login_required\n+def change_notification_settings(email):\n+    \"\"\"Get the notification settings of the account.\n+    If the e-mail is not passed, return own settings.\"\"\"\n+    if not request.is_json:\n+        abort(400, {'message': 'The request should be in JSON.'})\n+\n+    if email is None:\n+        user = current_user\n+    else:\n+        if not current_user.is_admin:","path":"innopoints/views/account.py","position":82,"original_position":82,"commit_id":"bbfb8674114ea991267e21be2b62fb7662bf38e0","original_commit_id":"bbfb8674114ea991267e21be2b62fb7662bf38e0","user":{"login":"illright","id":15035286,"node_id":"MDQ6VXNlcjE1MDM1Mjg2","avatar_url":"https://avatars0.githubusercontent.com/u/15035286?v=4","gravatar_id":"","url":"https://api.github.com/users/illright","html_url":"https://github.com/illright","followers_url":"https://api.github.com/users/illright/followers","following_url":"https://api.github.com/users/illright/following{/other_user}","gists_url":"https://api.github.com/users/illright/gists{/gist_id}","starred_url":"https://api.github.com/users/illright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illright/subscriptions","organizations_url":"https://api.github.com/users/illright/orgs","repos_url":"https://api.github.com/users/illright/repos","events_url":"https://api.github.com/users/illright/events{/privacy}","received_events_url":"https://api.github.com/users/illright/received_events","type":"User","site_admin":false},"body":"Well, Andrey wanted ultimate powers over the website, he got them. The reason for those endpoints is so that the `/profile/<email>` page on the frontend would fully function, doesn't mean they will actually be used","created_at":"2020-01-06T12:00:40Z","updated_at":"2020-01-06T12:00:40Z","html_url":"https://github.com/illright/innopoints-backend/pull/74#discussion_r363266150","pull_request_url":"https://api.github.com/repos/illright/innopoints-backend/pulls/74","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/illright/innopoints-backend/pulls/comments/363266150"},"html":{"href":"https://github.com/illright/innopoints-backend/pull/74#discussion_r363266150"},"pull_request":{"href":"https://api.github.com/repos/illright/innopoints-backend/pulls/74"}},"in_reply_to_id":363261801},"pull_request":{"url":"https://api.github.com/repos/illright/innopoints-backend/pulls/74","id":359467328,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU5NDY3MzI4","html_url":"https://github.com/illright/innopoints-backend/pull/74","diff_url":"https://github.com/illright/innopoints-backend/pull/74.diff","patch_url":"https://github.com/illright/innopoints-backend/pull/74.patch","issue_url":"https://api.github.com/repos/illright/innopoints-backend/issues/74","number":74,"state":"open","locked":false,"title":"Implement notification settings","user":{"login":"illright","id":15035286,"node_id":"MDQ6VXNlcjE1MDM1Mjg2","avatar_url":"https://avatars0.githubusercontent.com/u/15035286?v=4","gravatar_id":"","url":"https://api.github.com/users/illright","html_url":"https://github.com/illright","followers_url":"https://api.github.com/users/illright/followers","following_url":"https://api.github.com/users/illright/following{/other_user}","gists_url":"https://api.github.com/users/illright/gists{/gist_id}","starred_url":"https://api.github.com/users/illright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illright/subscriptions","organizations_url":"https://api.github.com/users/illright/orgs","repos_url":"https://api.github.com/users/illright/repos","events_url":"https://api.github.com/users/illright/events{/privacy}","received_events_url":"https://api.github.com/users/illright/received_events","type":"User","site_admin":false},"body":"Closes #31 ","created_at":"2020-01-06T09:44:52Z","updated_at":"2020-01-06T12:00:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"276ce81043768b631c7acf4139ede4fe2f370266","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/illright/innopoints-backend/pulls/74/commits","review_comments_url":"https://api.github.com/repos/illright/innopoints-backend/pulls/74/comments","review_comment_url":"https://api.github.com/repos/illright/innopoints-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/illright/innopoints-backend/issues/74/comments","statuses_url":"https://api.github.com/repos/illright/innopoints-backend/statuses/bbfb8674114ea991267e21be2b62fb7662bf38e0","head":{"label":"illright:feature/notification-settings","ref":"feature/notification-settings","sha":"bbfb8674114ea991267e21be2b62fb7662bf38e0","user":{"login":"illright","id":15035286,"node_id":"MDQ6VXNlcjE1MDM1Mjg2","avatar_url":"https://avatars0.githubusercontent.com/u/15035286?v=4","gravatar_id":"","url":"https://api.github.com/users/illright","html_url":"https://github.com/illright","followers_url":"https://api.github.com/users/illright/followers","following_url":"https://api.github.com/users/illright/following{/other_user}","gists_url":"https://api.github.com/users/illright/gists{/gist_id}","starred_url":"https://api.github.com/users/illright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illright/subscriptions","organizations_url":"https://api.github.com/users/illright/orgs","repos_url":"https://api.github.com/users/illright/repos","events_url":"https://api.github.com/users/illright/events{/privacy}","received_events_url":"https://api.github.com/users/illright/received_events","type":"User","site_admin":false},"repo":{"id":189706184,"node_id":"MDEwOlJlcG9zaXRvcnkxODk3MDYxODQ=","name":"innopoints-backend","full_name":"illright/innopoints-backend","private":false,"owner":{"login":"illright","id":15035286,"node_id":"MDQ6VXNlcjE1MDM1Mjg2","avatar_url":"https://avatars0.githubusercontent.com/u/15035286?v=4","gravatar_id":"","url":"https://api.github.com/users/illright","html_url":"https://github.com/illright","followers_url":"https://api.github.com/users/illright/followers","following_url":"https://api.github.com/users/illright/following{/other_user}","gists_url":"https://api.github.com/users/illright/gists{/gist_id}","starred_url":"https://api.github.com/users/illright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illright/subscriptions","organizations_url":"https://api.github.com/users/illright/orgs","repos_url":"https://api.github.com/users/illright/repos","events_url":"https://api.github.com/users/illright/events{/privacy}","received_events_url":"https://api.github.com/users/illright/received_events","type":"User","site_admin":false},"html_url":"https://github.com/illright/innopoints-backend","description":"The backend for the IU Innopoints project","fork":false,"url":"https://api.github.com/repos/illright/innopoints-backend","forks_url":"https://api.github.com/repos/illright/innopoints-backend/forks","keys_url":"https://api.github.com/repos/illright/innopoints-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/illright/innopoints-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/illright/innopoints-backend/teams","hooks_url":"https://api.github.com/repos/illright/innopoints-backend/hooks","issue_events_url":"https://api.github.com/repos/illright/innopoints-backend/issues/events{/number}","events_url":"https://api.github.com/repos/illright/innopoints-backend/events","assignees_url":"https://api.github.com/repos/illright/innopoints-backend/assignees{/user}","branches_url":"https://api.github.com/repos/illright/innopoints-backend/branches{/branch}","tags_url":"https://api.github.com/repos/illright/innopoints-backend/tags","blobs_url":"https://api.github.com/repos/illright/innopoints-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/illright/innopoints-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/illright/innopoints-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/illright/innopoints-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/illright/innopoints-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/illright/innopoints-backend/languages","stargazers_url":"https://api.github.com/repos/illright/innopoints-backend/stargazers","contributors_url":"https://api.github.com/repos/illright/innopoints-backend/contributors","subscribers_url":"https://api.github.com/repos/illright/innopoints-backend/subscribers","subscription_url":"https://api.github.com/repos/illright/innopoints-backend/subscription","commits_url":"https://api.github.com/repos/illright/innopoints-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/illright/innopoints-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/illright/innopoints-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/illright/innopoints-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/illright/innopoints-backend/contents/{+path}","compare_url":"https://api.github.com/repos/illright/innopoints-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/illright/innopoints-backend/merges","archive_url":"https://api.github.com/repos/illright/innopoints-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/illright/innopoints-backend/downloads","issues_url":"https://api.github.com/repos/illright/innopoints-backend/issues{/number}","pulls_url":"https://api.github.com/repos/illright/innopoints-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/illright/innopoints-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/illright/innopoints-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/illright/innopoints-backend/labels{/name}","releases_url":"https://api.github.com/repos/illright/innopoints-backend/releases{/id}","deployments_url":"https://api.github.com/repos/illright/innopoints-backend/deployments","created_at":"2019-06-01T07:56:22Z","updated_at":"2020-01-06T07:27:33Z","pushed_at":"2020-01-06T11:43:01Z","git_url":"git://github.com/illright/innopoints-backend.git","ssh_url":"git@github.com:illright/innopoints-backend.git","clone_url":"https://github.com/illright/innopoints-backend.git","svn_url":"https://github.com/illright/innopoints-backend","homepage":null,"size":364,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":17,"license":null,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"base":{"label":"illright:master","ref":"master","sha":"9f18dea796774fe23937aed4ade78efe0a50f0de","user":{"login":"illright","id":15035286,"node_id":"MDQ6VXNlcjE1MDM1Mjg2","avatar_url":"https://avatars0.githubusercontent.com/u/15035286?v=4","gravatar_id":"","url":"https://api.github.com/users/illright","html_url":"https://github.com/illright","followers_url":"https://api.github.com/users/illright/followers","following_url":"https://api.github.com/users/illright/following{/other_user}","gists_url":"https://api.github.com/users/illright/gists{/gist_id}","starred_url":"https://api.github.com/users/illright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illright/subscriptions","organizations_url":"https://api.github.com/users/illright/orgs","repos_url":"https://api.github.com/users/illright/repos","events_url":"https://api.github.com/users/illright/events{/privacy}","received_events_url":"https://api.github.com/users/illright/received_events","type":"User","site_admin":false},"repo":{"id":189706184,"node_id":"MDEwOlJlcG9zaXRvcnkxODk3MDYxODQ=","name":"innopoints-backend","full_name":"illright/innopoints-backend","private":false,"owner":{"login":"illright","id":15035286,"node_id":"MDQ6VXNlcjE1MDM1Mjg2","avatar_url":"https://avatars0.githubusercontent.com/u/15035286?v=4","gravatar_id":"","url":"https://api.github.com/users/illright","html_url":"https://github.com/illright","followers_url":"https://api.github.com/users/illright/followers","following_url":"https://api.github.com/users/illright/following{/other_user}","gists_url":"https://api.github.com/users/illright/gists{/gist_id}","starred_url":"https://api.github.com/users/illright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/illright/subscriptions","organizations_url":"https://api.github.com/users/illright/orgs","repos_url":"https://api.github.com/users/illright/repos","events_url":"https://api.github.com/users/illright/events{/privacy}","received_events_url":"https://api.github.com/users/illright/received_events","type":"User","site_admin":false},"html_url":"https://github.com/illright/innopoints-backend","description":"The backend for the IU Innopoints project","fork":false,"url":"https://api.github.com/repos/illright/innopoints-backend","forks_url":"https://api.github.com/repos/illright/innopoints-backend/forks","keys_url":"https://api.github.com/repos/illright/innopoints-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/illright/innopoints-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/illright/innopoints-backend/teams","hooks_url":"https://api.github.com/repos/illright/innopoints-backend/hooks","issue_events_url":"https://api.github.com/repos/illright/innopoints-backend/issues/events{/number}","events_url":"https://api.github.com/repos/illright/innopoints-backend/events","assignees_url":"https://api.github.com/repos/illright/innopoints-backend/assignees{/user}","branches_url":"https://api.github.com/repos/illright/innopoints-backend/branches{/branch}","tags_url":"https://api.github.com/repos/illright/innopoints-backend/tags","blobs_url":"https://api.github.com/repos/illright/innopoints-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/illright/innopoints-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/illright/innopoints-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/illright/innopoints-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/illright/innopoints-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/illright/innopoints-backend/languages","stargazers_url":"https://api.github.com/repos/illright/innopoints-backend/stargazers","contributors_url":"https://api.github.com/repos/illright/innopoints-backend/contributors","subscribers_url":"https://api.github.com/repos/illright/innopoints-backend/subscribers","subscription_url":"https://api.github.com/repos/illright/innopoints-backend/subscription","commits_url":"https://api.github.com/repos/illright/innopoints-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/illright/innopoints-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/illright/innopoints-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/illright/innopoints-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/illright/innopoints-backend/contents/{+path}","compare_url":"https://api.github.com/repos/illright/innopoints-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/illright/innopoints-backend/merges","archive_url":"https://api.github.com/repos/illright/innopoints-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/illright/innopoints-backend/downloads","issues_url":"https://api.github.com/repos/illright/innopoints-backend/issues{/number}","pulls_url":"https://api.github.com/repos/illright/innopoints-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/illright/innopoints-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/illright/innopoints-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/illright/innopoints-backend/labels{/name}","releases_url":"https://api.github.com/repos/illright/innopoints-backend/releases{/id}","deployments_url":"https://api.github.com/repos/illright/innopoints-backend/deployments","created_at":"2019-06-01T07:56:22Z","updated_at":"2020-01-06T07:27:33Z","pushed_at":"2020-01-06T11:43:01Z","git_url":"git://github.com/illright/innopoints-backend.git","ssh_url":"git@github.com:illright/innopoints-backend.git","clone_url":"https://github.com/illright/innopoints-backend.git","svn_url":"https://github.com/illright/innopoints-backend","homepage":null,"size":364,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":17,"license":null,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/illright/innopoints-backend/pulls/74"},"html":{"href":"https://github.com/illright/innopoints-backend/pull/74"},"issue":{"href":"https://api.github.com/repos/illright/innopoints-backend/issues/74"},"comments":{"href":"https://api.github.com/repos/illright/innopoints-backend/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/illright/innopoints-backend/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/illright/innopoints-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/illright/innopoints-backend/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/illright/innopoints-backend/statuses/bbfb8674114ea991267e21be2b62fb7662bf38e0"}},"author_association":"OWNER"}}
{"actor":{"display_login":"illright"}}