{"action":"created","comment":{"url":"https://api.github.com/repos/loomio/loomio/pulls/comments/54032024","id":54032024,"diff_hunk":"@@ -20,6 +20,8 @@ def self.invite_to_group(recipient_emails: nil,\n                            message: nil,\n                            group: nil,\n                            inviter: nil)\n+    group_members = group.members.pluck(:email)\n+    recipient_emails = recipient_emails - group_members","path":"app/services/invitation_service.rb","position":5,"original_position":5,"commit_id":"5c5edf7d67529edf8ee10de6c25886aa153c7af2","original_commit_id":"5c5edf7d67529edf8ee10de6c25886aa153c7af2","user":{"login":"gdpelican","id":750477,"avatar_url":"https://avatars.githubusercontent.com/u/750477?v=3","gravatar_id":"","url":"https://api.github.com/users/gdpelican","html_url":"https://github.com/gdpelican","followers_url":"https://api.github.com/users/gdpelican/followers","following_url":"https://api.github.com/users/gdpelican/following{/other_user}","gists_url":"https://api.github.com/users/gdpelican/gists{/gist_id}","starred_url":"https://api.github.com/users/gdpelican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdpelican/subscriptions","organizations_url":"https://api.github.com/users/gdpelican/orgs","repos_url":"https://api.github.com/users/gdpelican/repos","events_url":"https://api.github.com/users/gdpelican/events{/privacy}","received_events_url":"https://api.github.com/users/gdpelican/received_events","type":"User","site_admin":false},"body":"`(recipient_email - group_members).map do |email|`","created_at":"2016-02-25T00:32:50Z","updated_at":"2016-02-25T00:32:50Z","html_url":"https://github.com/loomio/loomio/pull/3014#discussion_r54032024","pull_request_url":"https://api.github.com/repos/loomio/loomio/pulls/3014","_links":{"self":{"href":"https://api.github.com/repos/loomio/loomio/pulls/comments/54032024"},"html":{"href":"https://github.com/loomio/loomio/pull/3014#discussion_r54032024"},"pull_request":{"href":"https://api.github.com/repos/loomio/loomio/pulls/3014"}}},"pull_request":{"url":"https://api.github.com/repos/loomio/loomio/pulls/3014","id":60603511,"html_url":"https://github.com/loomio/loomio/pull/3014","diff_url":"https://github.com/loomio/loomio/pull/3014.diff","patch_url":"https://github.com/loomio/loomio/pull/3014.patch","issue_url":"https://api.github.com/repos/loomio/loomio/issues/3014","number":3014,"state":"open","locked":false,"title":"Stop notifications for existing group members who are re-invited to g…","user":{"login":"HSalmon","id":2882097,"avatar_url":"https://avatars.githubusercontent.com/u/2882097?v=3","gravatar_id":"","url":"https://api.github.com/users/HSalmon","html_url":"https://github.com/HSalmon","followers_url":"https://api.github.com/users/HSalmon/followers","following_url":"https://api.github.com/users/HSalmon/following{/other_user}","gists_url":"https://api.github.com/users/HSalmon/gists{/gist_id}","starred_url":"https://api.github.com/users/HSalmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HSalmon/subscriptions","organizations_url":"https://api.github.com/users/HSalmon/orgs","repos_url":"https://api.github.com/users/HSalmon/repos","events_url":"https://api.github.com/users/HSalmon/events{/privacy}","received_events_url":"https://api.github.com/users/HSalmon/received_events","type":"User","site_admin":false},"body":"…roup\r\n\r\nAddresses https://github.com/loomio/loomio/issues/2094\r\n\r\n<img width=\"694\" alt=\"screen shot 2016-02-25 at 1 10 34 pm\" src=\"https://cloud.githubusercontent.com/assets/2882097/13305714/430c57d8-dbc2-11e5-8ed6-ee5c1f3e525d.png\">\r\n","created_at":"2016-02-25T00:18:35Z","updated_at":"2016-02-25T00:32:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec0c1d396c1d758161d181e0db029d5f50cfda85","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/loomio/loomio/pulls/3014/commits","review_comments_url":"https://api.github.com/repos/loomio/loomio/pulls/3014/comments","review_comment_url":"https://api.github.com/repos/loomio/loomio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/loomio/loomio/issues/3014/comments","statuses_url":"https://api.github.com/repos/loomio/loomio/statuses/5c5edf7d67529edf8ee10de6c25886aa153c7af2","head":{"label":"loomio:invitation-re-notifies-group-member","ref":"invitation-re-notifies-group-member","sha":"5c5edf7d67529edf8ee10de6c25886aa153c7af2","user":{"login":"loomio","id":1896739,"avatar_url":"https://avatars.githubusercontent.com/u/1896739?v=3","gravatar_id":"","url":"https://api.github.com/users/loomio","html_url":"https://github.com/loomio","followers_url":"https://api.github.com/users/loomio/followers","following_url":"https://api.github.com/users/loomio/following{/other_user}","gists_url":"https://api.github.com/users/loomio/gists{/gist_id}","starred_url":"https://api.github.com/users/loomio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomio/subscriptions","organizations_url":"https://api.github.com/users/loomio/orgs","repos_url":"https://api.github.com/users/loomio/repos","events_url":"https://api.github.com/users/loomio/events{/privacy}","received_events_url":"https://api.github.com/users/loomio/received_events","type":"Organization","site_admin":false},"repo":{"id":2731301,"name":"loomio","full_name":"loomio/loomio","owner":{"login":"loomio","id":1896739,"avatar_url":"https://avatars.githubusercontent.com/u/1896739?v=3","gravatar_id":"","url":"https://api.github.com/users/loomio","html_url":"https://github.com/loomio","followers_url":"https://api.github.com/users/loomio/followers","following_url":"https://api.github.com/users/loomio/following{/other_user}","gists_url":"https://api.github.com/users/loomio/gists{/gist_id}","starred_url":"https://api.github.com/users/loomio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomio/subscriptions","organizations_url":"https://api.github.com/users/loomio/orgs","repos_url":"https://api.github.com/users/loomio/repos","events_url":"https://api.github.com/users/loomio/events{/privacy}","received_events_url":"https://api.github.com/users/loomio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/loomio/loomio","description":"Loomio is an open-source web application that helps groups make better decisions together.","fork":false,"url":"https://api.github.com/repos/loomio/loomio","forks_url":"https://api.github.com/repos/loomio/loomio/forks","keys_url":"https://api.github.com/repos/loomio/loomio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loomio/loomio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loomio/loomio/teams","hooks_url":"https://api.github.com/repos/loomio/loomio/hooks","issue_events_url":"https://api.github.com/repos/loomio/loomio/issues/events{/number}","events_url":"https://api.github.com/repos/loomio/loomio/events","assignees_url":"https://api.github.com/repos/loomio/loomio/assignees{/user}","branches_url":"https://api.github.com/repos/loomio/loomio/branches{/branch}","tags_url":"https://api.github.com/repos/loomio/loomio/tags","blobs_url":"https://api.github.com/repos/loomio/loomio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loomio/loomio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loomio/loomio/git/refs{/sha}","trees_url":"https://api.github.com/repos/loomio/loomio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loomio/loomio/statuses/{sha}","languages_url":"https://api.github.com/repos/loomio/loomio/languages","stargazers_url":"https://api.github.com/repos/loomio/loomio/stargazers","contributors_url":"https://api.github.com/repos/loomio/loomio/contributors","subscribers_url":"https://api.github.com/repos/loomio/loomio/subscribers","subscription_url":"https://api.github.com/repos/loomio/loomio/subscription","commits_url":"https://api.github.com/repos/loomio/loomio/commits{/sha}","git_commits_url":"https://api.github.com/repos/loomio/loomio/git/commits{/sha}","comments_url":"https://api.github.com/repos/loomio/loomio/comments{/number}","issue_comment_url":"https://api.github.com/repos/loomio/loomio/issues/comments{/number}","contents_url":"https://api.github.com/repos/loomio/loomio/contents/{+path}","compare_url":"https://api.github.com/repos/loomio/loomio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loomio/loomio/merges","archive_url":"https://api.github.com/repos/loomio/loomio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loomio/loomio/downloads","issues_url":"https://api.github.com/repos/loomio/loomio/issues{/number}","pulls_url":"https://api.github.com/repos/loomio/loomio/pulls{/number}","milestones_url":"https://api.github.com/repos/loomio/loomio/milestones{/number}","notifications_url":"https://api.github.com/repos/loomio/loomio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loomio/loomio/labels{/name}","releases_url":"https://api.github.com/repos/loomio/loomio/releases{/id}","deployments_url":"https://api.github.com/repos/loomio/loomio/deployments","created_at":"2011-11-08T03:27:12Z","updated_at":"2016-02-24T01:16:05Z","pushed_at":"2016-02-25T00:18:38Z","git_url":"git://github.com/loomio/loomio.git","ssh_url":"git@github.com:loomio/loomio.git","clone_url":"https://github.com/loomio/loomio.git","svn_url":"https://github.com/loomio/loomio","homepage":"www.loomio.org","size":152183,"stargazers_count":1119,"watchers_count":1119,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":411,"mirror_url":null,"open_issues_count":39,"forks":411,"open_issues":39,"watchers":1119,"default_branch":"master"}},"base":{"label":"loomio:master","ref":"master","sha":"0f46f4cf07ebcdf04ea4d7ee38b7b6c16c358215","user":{"login":"loomio","id":1896739,"avatar_url":"https://avatars.githubusercontent.com/u/1896739?v=3","gravatar_id":"","url":"https://api.github.com/users/loomio","html_url":"https://github.com/loomio","followers_url":"https://api.github.com/users/loomio/followers","following_url":"https://api.github.com/users/loomio/following{/other_user}","gists_url":"https://api.github.com/users/loomio/gists{/gist_id}","starred_url":"https://api.github.com/users/loomio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomio/subscriptions","organizations_url":"https://api.github.com/users/loomio/orgs","repos_url":"https://api.github.com/users/loomio/repos","events_url":"https://api.github.com/users/loomio/events{/privacy}","received_events_url":"https://api.github.com/users/loomio/received_events","type":"Organization","site_admin":false},"repo":{"id":2731301,"name":"loomio","full_name":"loomio/loomio","owner":{"login":"loomio","id":1896739,"avatar_url":"https://avatars.githubusercontent.com/u/1896739?v=3","gravatar_id":"","url":"https://api.github.com/users/loomio","html_url":"https://github.com/loomio","followers_url":"https://api.github.com/users/loomio/followers","following_url":"https://api.github.com/users/loomio/following{/other_user}","gists_url":"https://api.github.com/users/loomio/gists{/gist_id}","starred_url":"https://api.github.com/users/loomio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loomio/subscriptions","organizations_url":"https://api.github.com/users/loomio/orgs","repos_url":"https://api.github.com/users/loomio/repos","events_url":"https://api.github.com/users/loomio/events{/privacy}","received_events_url":"https://api.github.com/users/loomio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/loomio/loomio","description":"Loomio is an open-source web application that helps groups make better decisions together.","fork":false,"url":"https://api.github.com/repos/loomio/loomio","forks_url":"https://api.github.com/repos/loomio/loomio/forks","keys_url":"https://api.github.com/repos/loomio/loomio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loomio/loomio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loomio/loomio/teams","hooks_url":"https://api.github.com/repos/loomio/loomio/hooks","issue_events_url":"https://api.github.com/repos/loomio/loomio/issues/events{/number}","events_url":"https://api.github.com/repos/loomio/loomio/events","assignees_url":"https://api.github.com/repos/loomio/loomio/assignees{/user}","branches_url":"https://api.github.com/repos/loomio/loomio/branches{/branch}","tags_url":"https://api.github.com/repos/loomio/loomio/tags","blobs_url":"https://api.github.com/repos/loomio/loomio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loomio/loomio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loomio/loomio/git/refs{/sha}","trees_url":"https://api.github.com/repos/loomio/loomio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loomio/loomio/statuses/{sha}","languages_url":"https://api.github.com/repos/loomio/loomio/languages","stargazers_url":"https://api.github.com/repos/loomio/loomio/stargazers","contributors_url":"https://api.github.com/repos/loomio/loomio/contributors","subscribers_url":"https://api.github.com/repos/loomio/loomio/subscribers","subscription_url":"https://api.github.com/repos/loomio/loomio/subscription","commits_url":"https://api.github.com/repos/loomio/loomio/commits{/sha}","git_commits_url":"https://api.github.com/repos/loomio/loomio/git/commits{/sha}","comments_url":"https://api.github.com/repos/loomio/loomio/comments{/number}","issue_comment_url":"https://api.github.com/repos/loomio/loomio/issues/comments{/number}","contents_url":"https://api.github.com/repos/loomio/loomio/contents/{+path}","compare_url":"https://api.github.com/repos/loomio/loomio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loomio/loomio/merges","archive_url":"https://api.github.com/repos/loomio/loomio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loomio/loomio/downloads","issues_url":"https://api.github.com/repos/loomio/loomio/issues{/number}","pulls_url":"https://api.github.com/repos/loomio/loomio/pulls{/number}","milestones_url":"https://api.github.com/repos/loomio/loomio/milestones{/number}","notifications_url":"https://api.github.com/repos/loomio/loomio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loomio/loomio/labels{/name}","releases_url":"https://api.github.com/repos/loomio/loomio/releases{/id}","deployments_url":"https://api.github.com/repos/loomio/loomio/deployments","created_at":"2011-11-08T03:27:12Z","updated_at":"2016-02-24T01:16:05Z","pushed_at":"2016-02-25T00:18:38Z","git_url":"git://github.com/loomio/loomio.git","ssh_url":"git@github.com:loomio/loomio.git","clone_url":"https://github.com/loomio/loomio.git","svn_url":"https://github.com/loomio/loomio","homepage":"www.loomio.org","size":152183,"stargazers_count":1119,"watchers_count":1119,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":411,"mirror_url":null,"open_issues_count":39,"forks":411,"open_issues":39,"watchers":1119,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/loomio/loomio/pulls/3014"},"html":{"href":"https://github.com/loomio/loomio/pull/3014"},"issue":{"href":"https://api.github.com/repos/loomio/loomio/issues/3014"},"comments":{"href":"https://api.github.com/repos/loomio/loomio/issues/3014/comments"},"review_comments":{"href":"https://api.github.com/repos/loomio/loomio/pulls/3014/comments"},"review_comment":{"href":"https://api.github.com/repos/loomio/loomio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/loomio/loomio/pulls/3014/commits"},"statuses":{"href":"https://api.github.com/repos/loomio/loomio/statuses/5c5edf7d67529edf8ee10de6c25886aa153c7af2"}}}}