{"action":"created","comment":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/27850856","id":27850856,"diff_hunk":"@@ -13,6 +13,23 @@\n   it 'has a valid factory' do\n     expect(FactoryGirl.build(:like)).to be_valid\n   end\n+  \n+  describe '#participation' do\n+    before do\n+      @like = alice.like!(@status)\n+    end\n+\n+    it 'has participation' do\n+      participations = Participation.where(target_id: @like.target_id, author_id: @like.author_id)\n+      expect(participations.count).to eq(1)\n+    end\n+    \n+    it 'destroy participation' do","path":"spec/models/like_spec.rb","position":15,"original_position":15,"commit_id":"389f11e04315c3b5178f35633d074bbdb5d5981a","original_commit_id":"389f11e04315c3b5178f35633d074bbdb5d5981a","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-04-07T04:26:38Z","updated_at":"2015-04-07T04:26:38Z","html_url":"https://github.com/diaspora/diaspora/pull/5852#discussion_r27850856","pull_request_url":"https://api.github.com/repos/diaspora/diaspora/pulls/5852","_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/27850856"},"html":{"href":"https://github.com/diaspora/diaspora/pull/5852#discussion_r27850856"},"pull_request":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5852"}}},"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/5852","id":32663213,"html_url":"https://github.com/diaspora/diaspora/pull/5852","diff_url":"https://github.com/diaspora/diaspora/pull/5852.diff","patch_url":"https://github.com/diaspora/diaspora/pull/5852.patch","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/5852","number":5852,"state":"open","locked":false,"title":"#3393 Activity stream keeping retracted participations","user":{"login":"margori","id":1149126,"avatar_url":"https://avatars.githubusercontent.com/u/1149126?v=3","gravatar_id":"","url":"https://api.github.com/users/margori","html_url":"https://github.com/margori","followers_url":"https://api.github.com/users/margori/followers","following_url":"https://api.github.com/users/margori/following{/other_user}","gists_url":"https://api.github.com/users/margori/gists{/gist_id}","starred_url":"https://api.github.com/users/margori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/margori/subscriptions","organizations_url":"https://api.github.com/users/margori/orgs","repos_url":"https://api.github.com/users/margori/repos","events_url":"https://api.github.com/users/margori/events{/privacy}","received_events_url":"https://api.github.com/users/margori/received_events","type":"User","site_admin":false},"body":"Solve #3393 Continues PR #3919\r\n\r\nI need code review, specially in the migration file. It has a complex query that I didn't know how to write it in Ruby style.","created_at":"2015-04-06T05:58:35Z","updated_at":"2015-04-07T04:26:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a6fff8889df97f565463bb66b724c1e45ee4dbb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diaspora/diaspora/pulls/5852/commits","review_comments_url":"https://api.github.com/repos/diaspora/diaspora/pulls/5852/comments","review_comment_url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/5852/comments","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/389f11e04315c3b5178f35633d074bbdb5d5981a","head":{"label":"margori:3393-activity-stream-keeping-retracted-participations","ref":"3393-activity-stream-keeping-retracted-participations","sha":"389f11e04315c3b5178f35633d074bbdb5d5981a","user":{"login":"margori","id":1149126,"avatar_url":"https://avatars.githubusercontent.com/u/1149126?v=3","gravatar_id":"","url":"https://api.github.com/users/margori","html_url":"https://github.com/margori","followers_url":"https://api.github.com/users/margori/followers","following_url":"https://api.github.com/users/margori/following{/other_user}","gists_url":"https://api.github.com/users/margori/gists{/gist_id}","starred_url":"https://api.github.com/users/margori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/margori/subscriptions","organizations_url":"https://api.github.com/users/margori/orgs","repos_url":"https://api.github.com/users/margori/repos","events_url":"https://api.github.com/users/margori/events{/privacy}","received_events_url":"https://api.github.com/users/margori/received_events","type":"User","site_admin":false},"repo":{"id":27187940,"name":"diaspora","full_name":"margori/diaspora","owner":{"login":"margori","id":1149126,"avatar_url":"https://avatars.githubusercontent.com/u/1149126?v=3","gravatar_id":"","url":"https://api.github.com/users/margori","html_url":"https://github.com/margori","followers_url":"https://api.github.com/users/margori/followers","following_url":"https://api.github.com/users/margori/following{/other_user}","gists_url":"https://api.github.com/users/margori/gists{/gist_id}","starred_url":"https://api.github.com/users/margori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/margori/subscriptions","organizations_url":"https://api.github.com/users/margori/orgs","repos_url":"https://api.github.com/users/margori/repos","events_url":"https://api.github.com/users/margori/events{/privacy}","received_events_url":"https://api.github.com/users/margori/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/margori/diaspora","description":"Distributed and contextual social networking","fork":true,"url":"https://api.github.com/repos/margori/diaspora","forks_url":"https://api.github.com/repos/margori/diaspora/forks","keys_url":"https://api.github.com/repos/margori/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/margori/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/margori/diaspora/teams","hooks_url":"https://api.github.com/repos/margori/diaspora/hooks","issue_events_url":"https://api.github.com/repos/margori/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/margori/diaspora/events","assignees_url":"https://api.github.com/repos/margori/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/margori/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/margori/diaspora/tags","blobs_url":"https://api.github.com/repos/margori/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/margori/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/margori/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/margori/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/margori/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/margori/diaspora/languages","stargazers_url":"https://api.github.com/repos/margori/diaspora/stargazers","contributors_url":"https://api.github.com/repos/margori/diaspora/contributors","subscribers_url":"https://api.github.com/repos/margori/diaspora/subscribers","subscription_url":"https://api.github.com/repos/margori/diaspora/subscription","commits_url":"https://api.github.com/repos/margori/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/margori/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/margori/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/margori/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/margori/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/margori/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/margori/diaspora/merges","archive_url":"https://api.github.com/repos/margori/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/margori/diaspora/downloads","issues_url":"https://api.github.com/repos/margori/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/margori/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/margori/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/margori/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/margori/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/margori/diaspora/releases{/id}","created_at":"2014-11-26T17:24:19Z","updated_at":"2014-11-26T17:24:24Z","pushed_at":"2015-04-07T04:26:32Z","git_url":"git://github.com/margori/diaspora.git","ssh_url":"git@github.com:margori/diaspora.git","clone_url":"https://github.com/margori/diaspora.git","svn_url":"https://github.com/margori/diaspora","homepage":"https://diasporafoundation.org/","size":99251,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"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":"4812dc7a23c0efcf7765c4743de0cb8436cd1478","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-04-06T12:00:44Z","pushed_at":"2015-04-07T04:26:34Z","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":251592,"stargazers_count":9878,"watchers_count":9878,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2528,"mirror_url":null,"open_issues_count":410,"forks":2528,"open_issues":410,"watchers":9878,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5852"},"html":{"href":"https://github.com/diaspora/diaspora/pull/5852"},"issue":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/5852"},"comments":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/5852/comments"},"review_comments":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5852/comments"},"review_comment":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/5852/commits"},"statuses":{"href":"https://api.github.com/repos/diaspora/diaspora/statuses/389f11e04315c3b5178f35633d074bbdb5d5981a"}}}}