{"action":"created","comment":{"url":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls/comments/157089643","pull_request_review_id":83677729,"id":157089643,"diff_hunk":"@@ -19,7 +21,26 @@ def message_create(request, market_id):\n             form = MessageForm()\n             service_name = event.type.service\n             msg_for_user = \"Twoja wiadomość na {} została dodana, dodaj wiadomości na inne platformy\".format(service_name)\n+            add_point_if_rules_allow(request.user.ngouser, market_id)\n             return render(request, 'registration/message.html', {'form': form, 'message':msg_for_user})\n     else:\n         form = MessageForm()\n-    return render(request, 'registration/message.html', {'form': form})\n\\ No newline at end of file\n+    return render(request, 'registration/message.html', {'form': form})\n+\n+\n+def add_point_if_rules_allow(ngo, market_id):\n+    from archipelag.ngo.models import NgoUser","path":"backend/code/archipelag/message/views.py","position":28,"original_position":28,"commit_id":"9de1d8460dca33008a4fb0ee866a9897cc53100d","original_commit_id":"9de1d8460dca33008a4fb0ee866a9897cc53100d","user":{"login":"firemark","id":3168499,"avatar_url":"https://avatars1.githubusercontent.com/u/3168499?v=4","gravatar_id":"","url":"https://api.github.com/users/firemark","html_url":"https://github.com/firemark","followers_url":"https://api.github.com/users/firemark/followers","following_url":"https://api.github.com/users/firemark/following{/other_user}","gists_url":"https://api.github.com/users/firemark/gists{/gist_id}","starred_url":"https://api.github.com/users/firemark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firemark/subscriptions","organizations_url":"https://api.github.com/users/firemark/orgs","repos_url":"https://api.github.com/users/firemark/repos","events_url":"https://api.github.com/users/firemark/events{/privacy}","received_events_url":"https://api.github.com/users/firemark/received_events","type":"User","site_admin":false},"body":"why?","created_at":"2017-12-14T23:25:27Z","updated_at":"2017-12-14T23:25:27Z","html_url":"https://github.com/hackerspace-silesia/archipelag/pull/4#discussion_r157089643","pull_request_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls/comments/157089643"},"html":{"href":"https://github.com/hackerspace-silesia/archipelag/pull/4#discussion_r157089643"},"pull_request":{"href":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls/4","id":158488520,"html_url":"https://github.com/hackerspace-silesia/archipelag/pull/4","diff_url":"https://github.com/hackerspace-silesia/archipelag/pull/4.diff","patch_url":"https://github.com/hackerspace-silesia/archipelag/pull/4.patch","issue_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/issues/4","number":4,"state":"open","locked":false,"title":"Coins rules","user":{"login":"noemiko","id":14345016,"avatar_url":"https://avatars3.githubusercontent.com/u/14345016?v=4","gravatar_id":"","url":"https://api.github.com/users/noemiko","html_url":"https://github.com/noemiko","followers_url":"https://api.github.com/users/noemiko/followers","following_url":"https://api.github.com/users/noemiko/following{/other_user}","gists_url":"https://api.github.com/users/noemiko/gists{/gist_id}","starred_url":"https://api.github.com/users/noemiko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noemiko/subscriptions","organizations_url":"https://api.github.com/users/noemiko/orgs","repos_url":"https://api.github.com/users/noemiko/repos","events_url":"https://api.github.com/users/noemiko/events{/privacy}","received_events_url":"https://api.github.com/users/noemiko/received_events","type":"User","site_admin":false},"body":"add rules to add coins","created_at":"2017-12-14T23:23:32Z","updated_at":"2017-12-14T23:25:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df92174ffd79ca9b180559010e11aa91f32bfa25","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls/4/commits","review_comments_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls/4/comments","review_comment_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/issues/4/comments","statuses_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/statuses/9de1d8460dca33008a4fb0ee866a9897cc53100d","head":{"label":"hackerspace-silesia:coins_rules","ref":"coins_rules","sha":"9de1d8460dca33008a4fb0ee866a9897cc53100d","user":{"login":"hackerspace-silesia","id":4450259,"avatar_url":"https://avatars3.githubusercontent.com/u/4450259?v=4","gravatar_id":"","url":"https://api.github.com/users/hackerspace-silesia","html_url":"https://github.com/hackerspace-silesia","followers_url":"https://api.github.com/users/hackerspace-silesia/followers","following_url":"https://api.github.com/users/hackerspace-silesia/following{/other_user}","gists_url":"https://api.github.com/users/hackerspace-silesia/gists{/gist_id}","starred_url":"https://api.github.com/users/hackerspace-silesia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackerspace-silesia/subscriptions","organizations_url":"https://api.github.com/users/hackerspace-silesia/orgs","repos_url":"https://api.github.com/users/hackerspace-silesia/repos","events_url":"https://api.github.com/users/hackerspace-silesia/events{/privacy}","received_events_url":"https://api.github.com/users/hackerspace-silesia/received_events","type":"Organization","site_admin":false},"repo":{"id":102955158,"name":"archipelag","full_name":"hackerspace-silesia/archipelag","owner":{"login":"hackerspace-silesia","id":4450259,"avatar_url":"https://avatars3.githubusercontent.com/u/4450259?v=4","gravatar_id":"","url":"https://api.github.com/users/hackerspace-silesia","html_url":"https://github.com/hackerspace-silesia","followers_url":"https://api.github.com/users/hackerspace-silesia/followers","following_url":"https://api.github.com/users/hackerspace-silesia/following{/other_user}","gists_url":"https://api.github.com/users/hackerspace-silesia/gists{/gist_id}","starred_url":"https://api.github.com/users/hackerspace-silesia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackerspace-silesia/subscriptions","organizations_url":"https://api.github.com/users/hackerspace-silesia/orgs","repos_url":"https://api.github.com/users/hackerspace-silesia/repos","events_url":"https://api.github.com/users/hackerspace-silesia/events{/privacy}","received_events_url":"https://api.github.com/users/hackerspace-silesia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hackerspace-silesia/archipelag","description":null,"fork":true,"url":"https://api.github.com/repos/hackerspace-silesia/archipelag","forks_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/forks","keys_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/teams","hooks_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/hooks","issue_events_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/issues/events{/number}","events_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/events","assignees_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/assignees{/user}","branches_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/branches{/branch}","tags_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/tags","blobs_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/git/refs{/sha}","trees_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/statuses/{sha}","languages_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/languages","stargazers_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/stargazers","contributors_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/contributors","subscribers_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/subscribers","subscription_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/subscription","commits_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/commits{/sha}","git_commits_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/git/commits{/sha}","comments_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/comments{/number}","issue_comment_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/issues/comments{/number}","contents_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/contents/{+path}","compare_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/merges","archive_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/downloads","issues_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/issues{/number}","pulls_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls{/number}","milestones_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/milestones{/number}","notifications_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/labels{/name}","releases_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/releases{/id}","deployments_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/deployments","created_at":"2017-09-09T13:02:03Z","updated_at":"2017-12-03T00:24:07Z","pushed_at":"2017-12-14T23:23:33Z","git_url":"git://github.com/hackerspace-silesia/archipelag.git","ssh_url":"git@github.com:hackerspace-silesia/archipelag.git","clone_url":"https://github.com/hackerspace-silesia/archipelag.git","svn_url":"https://github.com/hackerspace-silesia/archipelag","homepage":null,"size":98,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"hackerspace-silesia:master","ref":"master","sha":"be8b9abdc26de67fd455c76b7e60a1914367feaa","user":{"login":"hackerspace-silesia","id":4450259,"avatar_url":"https://avatars3.githubusercontent.com/u/4450259?v=4","gravatar_id":"","url":"https://api.github.com/users/hackerspace-silesia","html_url":"https://github.com/hackerspace-silesia","followers_url":"https://api.github.com/users/hackerspace-silesia/followers","following_url":"https://api.github.com/users/hackerspace-silesia/following{/other_user}","gists_url":"https://api.github.com/users/hackerspace-silesia/gists{/gist_id}","starred_url":"https://api.github.com/users/hackerspace-silesia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackerspace-silesia/subscriptions","organizations_url":"https://api.github.com/users/hackerspace-silesia/orgs","repos_url":"https://api.github.com/users/hackerspace-silesia/repos","events_url":"https://api.github.com/users/hackerspace-silesia/events{/privacy}","received_events_url":"https://api.github.com/users/hackerspace-silesia/received_events","type":"Organization","site_admin":false},"repo":{"id":102955158,"name":"archipelag","full_name":"hackerspace-silesia/archipelag","owner":{"login":"hackerspace-silesia","id":4450259,"avatar_url":"https://avatars3.githubusercontent.com/u/4450259?v=4","gravatar_id":"","url":"https://api.github.com/users/hackerspace-silesia","html_url":"https://github.com/hackerspace-silesia","followers_url":"https://api.github.com/users/hackerspace-silesia/followers","following_url":"https://api.github.com/users/hackerspace-silesia/following{/other_user}","gists_url":"https://api.github.com/users/hackerspace-silesia/gists{/gist_id}","starred_url":"https://api.github.com/users/hackerspace-silesia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackerspace-silesia/subscriptions","organizations_url":"https://api.github.com/users/hackerspace-silesia/orgs","repos_url":"https://api.github.com/users/hackerspace-silesia/repos","events_url":"https://api.github.com/users/hackerspace-silesia/events{/privacy}","received_events_url":"https://api.github.com/users/hackerspace-silesia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hackerspace-silesia/archipelag","description":null,"fork":true,"url":"https://api.github.com/repos/hackerspace-silesia/archipelag","forks_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/forks","keys_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/teams","hooks_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/hooks","issue_events_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/issues/events{/number}","events_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/events","assignees_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/assignees{/user}","branches_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/branches{/branch}","tags_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/tags","blobs_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/git/refs{/sha}","trees_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/statuses/{sha}","languages_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/languages","stargazers_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/stargazers","contributors_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/contributors","subscribers_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/subscribers","subscription_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/subscription","commits_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/commits{/sha}","git_commits_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/git/commits{/sha}","comments_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/comments{/number}","issue_comment_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/issues/comments{/number}","contents_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/contents/{+path}","compare_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/merges","archive_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/downloads","issues_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/issues{/number}","pulls_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls{/number}","milestones_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/milestones{/number}","notifications_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/labels{/name}","releases_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/releases{/id}","deployments_url":"https://api.github.com/repos/hackerspace-silesia/archipelag/deployments","created_at":"2017-09-09T13:02:03Z","updated_at":"2017-12-03T00:24:07Z","pushed_at":"2017-12-14T23:23:33Z","git_url":"git://github.com/hackerspace-silesia/archipelag.git","ssh_url":"git@github.com:hackerspace-silesia/archipelag.git","clone_url":"https://github.com/hackerspace-silesia/archipelag.git","svn_url":"https://github.com/hackerspace-silesia/archipelag","homepage":null,"size":98,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls/4"},"html":{"href":"https://github.com/hackerspace-silesia/archipelag/pull/4"},"issue":{"href":"https://api.github.com/repos/hackerspace-silesia/archipelag/issues/4"},"comments":{"href":"https://api.github.com/repos/hackerspace-silesia/archipelag/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hackerspace-silesia/archipelag/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/hackerspace-silesia/archipelag/statuses/9de1d8460dca33008a4fb0ee866a9897cc53100d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"firemark"}}