{"action":"created","comment":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/24983989","id":24983989,"diff_hunk":"@@ -86,7 +86,7 @@ def subscribers(user)\n   end\n \n   def receive(user, person)\n-    cnv = Conversation.find_or_create_by!(self.attributes)\n+    cnv = Conversation.create_with(self.attributes).find_or_create_by!(self.attributes[:guid])","path":"app/models/conversation.rb","position":14,"original_position":14,"commit_id":"c661d4e5f5eeee978adf305f17beac0ac088dc43","original_commit_id":"c661d4e5f5eeee978adf305f17beac0ac088dc43","user":{"login":"jhass","id":141294,"avatar_url":"https://avatars.githubusercontent.com/u/141294?v=3","gravatar_id":"","url":"https://api.github.com/users/jhass","html_url":"https://github.com/jhass","followers_url":"https://api.github.com/users/jhass/followers","following_url":"https://api.github.com/users/jhass/following{/other_user}","gists_url":"https://api.github.com/users/jhass/gists{/gist_id}","starred_url":"https://api.github.com/users/jhass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhass/subscriptions","organizations_url":"https://api.github.com/users/jhass/orgs","repos_url":"https://api.github.com/users/jhass/repos","events_url":"https://api.github.com/users/jhass/events{/privacy}","received_events_url":"https://api.github.com/users/jhass/received_events","type":"User","site_admin":false},"body":"Just checked, it generates the following query:\r\n\r\n```sql\r\nSELECT  \"conversations\".* FROM \"conversations\"  LIMIT 1\r\n```\r\n\r\nThat just happens to match in the test.","created_at":"2015-02-19T12:31:00Z","updated_at":"2015-02-19T12:31:00Z","html_url":"https://github.com/diaspora/diaspora/pull/5686#discussion_r24983989","pull_request_url":"https://api.github.com/repos/diaspora/diaspora/pulls/5686","_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/24983989"},"html":{"href":"https://github.com/diaspora/diaspora/pull/5686#discussion_r24983989"},"pull_request":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5686"}}},"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/5686","id":29588968,"html_url":"https://github.com/diaspora/diaspora/pull/5686","diff_url":"https://github.com/diaspora/diaspora/pull/5686.diff","patch_url":"https://github.com/diaspora/diaspora/pull/5686.patch","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/5686","number":5686,"state":"open","locked":false,"title":"Fix notification for new conversations","user":{"login":"svbergerem","id":3798614,"avatar_url":"https://avatars.githubusercontent.com/u/3798614?v=3","gravatar_id":"","url":"https://api.github.com/users/svbergerem","html_url":"https://github.com/svbergerem","followers_url":"https://api.github.com/users/svbergerem/followers","following_url":"https://api.github.com/users/svbergerem/following{/other_user}","gists_url":"https://api.github.com/users/svbergerem/gists{/gist_id}","starred_url":"https://api.github.com/users/svbergerem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svbergerem/subscriptions","organizations_url":"https://api.github.com/users/svbergerem/orgs","repos_url":"https://api.github.com/users/svbergerem/repos","events_url":"https://api.github.com/users/svbergerem/events{/privacy}","received_events_url":"https://api.github.com/users/svbergerem/received_events","type":"User","site_admin":false},"body":"Fixes #5330, maybe introduced by [this commit](https://github.com/diaspora/diaspora/commit/33c3b38f2f8c6ede39b1357eb3cb49f18543cdce). The spec I posted in #5330 wasn't working but I wrote a cucumber feature.","created_at":"2015-02-19T05:57:45Z","updated_at":"2015-02-19T12:31:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6bfc78f2c7a9a2cbaf1e3ea9112dfc8e92843418","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diaspora/diaspora/pulls/5686/commits","review_comments_url":"https://api.github.com/repos/diaspora/diaspora/pulls/5686/comments","review_comment_url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/{number}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/5686/comments","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/c661d4e5f5eeee978adf305f17beac0ac088dc43","head":{"label":"svbergerem:fix-conversations-notification","ref":"fix-conversations-notification","sha":"c661d4e5f5eeee978adf305f17beac0ac088dc43","user":{"login":"svbergerem","id":3798614,"avatar_url":"https://avatars.githubusercontent.com/u/3798614?v=3","gravatar_id":"","url":"https://api.github.com/users/svbergerem","html_url":"https://github.com/svbergerem","followers_url":"https://api.github.com/users/svbergerem/followers","following_url":"https://api.github.com/users/svbergerem/following{/other_user}","gists_url":"https://api.github.com/users/svbergerem/gists{/gist_id}","starred_url":"https://api.github.com/users/svbergerem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svbergerem/subscriptions","organizations_url":"https://api.github.com/users/svbergerem/orgs","repos_url":"https://api.github.com/users/svbergerem/repos","events_url":"https://api.github.com/users/svbergerem/events{/privacy}","received_events_url":"https://api.github.com/users/svbergerem/received_events","type":"User","site_admin":false},"repo":{"id":8634427,"name":"diaspora","full_name":"svbergerem/diaspora","owner":{"login":"svbergerem","id":3798614,"avatar_url":"https://avatars.githubusercontent.com/u/3798614?v=3","gravatar_id":"","url":"https://api.github.com/users/svbergerem","html_url":"https://github.com/svbergerem","followers_url":"https://api.github.com/users/svbergerem/followers","following_url":"https://api.github.com/users/svbergerem/following{/other_user}","gists_url":"https://api.github.com/users/svbergerem/gists{/gist_id}","starred_url":"https://api.github.com/users/svbergerem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svbergerem/subscriptions","organizations_url":"https://api.github.com/users/svbergerem/orgs","repos_url":"https://api.github.com/users/svbergerem/repos","events_url":"https://api.github.com/users/svbergerem/events{/privacy}","received_events_url":"https://api.github.com/users/svbergerem/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/svbergerem/diaspora","description":"Distributed and contextual social networking","fork":true,"url":"https://api.github.com/repos/svbergerem/diaspora","forks_url":"https://api.github.com/repos/svbergerem/diaspora/forks","keys_url":"https://api.github.com/repos/svbergerem/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/svbergerem/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/svbergerem/diaspora/teams","hooks_url":"https://api.github.com/repos/svbergerem/diaspora/hooks","issue_events_url":"https://api.github.com/repos/svbergerem/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/svbergerem/diaspora/events","assignees_url":"https://api.github.com/repos/svbergerem/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/svbergerem/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/svbergerem/diaspora/tags","blobs_url":"https://api.github.com/repos/svbergerem/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/svbergerem/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/svbergerem/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/svbergerem/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/svbergerem/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/svbergerem/diaspora/languages","stargazers_url":"https://api.github.com/repos/svbergerem/diaspora/stargazers","contributors_url":"https://api.github.com/repos/svbergerem/diaspora/contributors","subscribers_url":"https://api.github.com/repos/svbergerem/diaspora/subscribers","subscription_url":"https://api.github.com/repos/svbergerem/diaspora/subscription","commits_url":"https://api.github.com/repos/svbergerem/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/svbergerem/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/svbergerem/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/svbergerem/diaspora/issues/comments/{number}","contents_url":"https://api.github.com/repos/svbergerem/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/svbergerem/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/svbergerem/diaspora/merges","archive_url":"https://api.github.com/repos/svbergerem/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/svbergerem/diaspora/downloads","issues_url":"https://api.github.com/repos/svbergerem/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/svbergerem/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/svbergerem/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/svbergerem/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/svbergerem/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/svbergerem/diaspora/releases{/id}","created_at":"2013-03-07T19:05:26Z","updated_at":"2015-02-16T18:20:20Z","pushed_at":"2015-02-19T06:32:37Z","git_url":"git://github.com/svbergerem/diaspora.git","ssh_url":"git@github.com:svbergerem/diaspora.git","clone_url":"https://github.com/svbergerem/diaspora.git","svn_url":"https://github.com/svbergerem/diaspora","homepage":"http://diaspora.github.com/diaspora","size":102892,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"diaspora:develop","ref":"develop","sha":"a19b91083e441e3e826627d71ee93c27efcedc9e","user":{"login":"diaspora","id":293207,"avatar_url":"https://avatars.githubusercontent.com/u/293207?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora","html_url":"https://github.com/diaspora","followers_url":"https://api.github.com/users/diaspora/followers","following_url":"https://api.github.com/users/diaspora/following{/other_user}","gists_url":"https://api.github.com/users/diaspora/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora/subscriptions","organizations_url":"https://api.github.com/users/diaspora/orgs","repos_url":"https://api.github.com/users/diaspora/repos","events_url":"https://api.github.com/users/diaspora/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora/received_events","type":"Organization","site_admin":false},"repo":{"id":911765,"name":"diaspora","full_name":"diaspora/diaspora","owner":{"login":"diaspora","id":293207,"avatar_url":"https://avatars.githubusercontent.com/u/293207?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora","html_url":"https://github.com/diaspora","followers_url":"https://api.github.com/users/diaspora/followers","following_url":"https://api.github.com/users/diaspora/following{/other_user}","gists_url":"https://api.github.com/users/diaspora/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora/subscriptions","organizations_url":"https://api.github.com/users/diaspora/orgs","repos_url":"https://api.github.com/users/diaspora/repos","events_url":"https://api.github.com/users/diaspora/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diaspora/diaspora","description":"Distributed and contextual social networking","fork":false,"url":"https://api.github.com/repos/diaspora/diaspora","forks_url":"https://api.github.com/repos/diaspora/diaspora/forks","keys_url":"https://api.github.com/repos/diaspora/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diaspora/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diaspora/diaspora/teams","hooks_url":"https://api.github.com/repos/diaspora/diaspora/hooks","issue_events_url":"https://api.github.com/repos/diaspora/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/diaspora/diaspora/events","assignees_url":"https://api.github.com/repos/diaspora/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/diaspora/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/diaspora/diaspora/tags","blobs_url":"https://api.github.com/repos/diaspora/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diaspora/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diaspora/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/diaspora/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/diaspora/diaspora/languages","stargazers_url":"https://api.github.com/repos/diaspora/diaspora/stargazers","contributors_url":"https://api.github.com/repos/diaspora/diaspora/contributors","subscribers_url":"https://api.github.com/repos/diaspora/diaspora/subscribers","subscription_url":"https://api.github.com/repos/diaspora/diaspora/subscription","commits_url":"https://api.github.com/repos/diaspora/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/diaspora/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/diaspora/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/diaspora/diaspora/issues/comments/{number}","contents_url":"https://api.github.com/repos/diaspora/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/diaspora/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diaspora/diaspora/merges","archive_url":"https://api.github.com/repos/diaspora/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diaspora/diaspora/downloads","issues_url":"https://api.github.com/repos/diaspora/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/diaspora/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/diaspora/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/diaspora/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diaspora/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/diaspora/diaspora/releases{/id}","created_at":"2010-09-15T05:20:04Z","updated_at":"2015-02-19T08:35:25Z","pushed_at":"2015-02-19T02:43:48Z","git_url":"git://github.com/diaspora/diaspora.git","ssh_url":"git@github.com:diaspora/diaspora.git","clone_url":"https://github.com/diaspora/diaspora.git","svn_url":"https://github.com/diaspora/diaspora","homepage":"https://diasporafoundation.org/","size":248738,"stargazers_count":9789,"watchers_count":9789,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2511,"mirror_url":null,"open_issues_count":426,"forks":2511,"open_issues":426,"watchers":9789,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5686"},"html":{"href":"https://github.com/diaspora/diaspora/pull/5686"},"issue":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/5686"},"comments":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/5686/comments"},"review_comments":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5686/comments"},"review_comment":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5686/commits"},"statuses":{"href":"https://api.github.com/repos/diaspora/diaspora/statuses/c661d4e5f5eeee978adf305f17beac0ac088dc43"}}}}