{"action":"created","comment":{"url":"https://api.github.com/repos/ID25/social/pulls/comments/36823757","id":36823757,"diff_hunk":"@@ -11,5 +13,11 @@ def self.from_users_followed_by(user)\n \n   validates :content, presence: true, length: {minimum: 1, maximum: 5000}\n   validates :user_id, presence: true\n+\n+  private\n+\n+  def delete_repost\n+    Repost.find_by(originan_post_id: self.id).destroy!","path":"app/models/post.rb","position":17,"original_position":17,"commit_id":"791dc35a7f1fdae30d165ccd79c2ad588e65169e","original_commit_id":"791dc35a7f1fdae30d165ccd79c2ad588e65169e","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":"Redundant `self` detected.","created_at":"2015-08-12T03:18:29Z","updated_at":"2015-08-12T03:18:29Z","html_url":"https://github.com/ID25/social/pull/10#discussion_r36823757","pull_request_url":"https://api.github.com/repos/ID25/social/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/ID25/social/pulls/comments/36823757"},"html":{"href":"https://github.com/ID25/social/pull/10#discussion_r36823757"},"pull_request":{"href":"https://api.github.com/repos/ID25/social/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/ID25/social/pulls/10","id":42200938,"html_url":"https://github.com/ID25/social/pull/10","diff_url":"https://github.com/ID25/social/pull/10.diff","patch_url":"https://github.com/ID25/social/pull/10.patch","issue_url":"https://api.github.com/repos/ID25/social/issues/10","number":10,"state":"closed","locked":false,"title":"Reposts","user":{"login":"ID25","id":6293295,"avatar_url":"https://avatars.githubusercontent.com/u/6293295?v=3","gravatar_id":"","url":"https://api.github.com/users/ID25","html_url":"https://github.com/ID25","followers_url":"https://api.github.com/users/ID25/followers","following_url":"https://api.github.com/users/ID25/following{/other_user}","gists_url":"https://api.github.com/users/ID25/gists{/gist_id}","starred_url":"https://api.github.com/users/ID25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ID25/subscriptions","organizations_url":"https://api.github.com/users/ID25/orgs","repos_url":"https://api.github.com/users/ID25/repos","events_url":"https://api.github.com/users/ID25/events{/privacy}","received_events_url":"https://api.github.com/users/ID25/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-12T03:18:23Z","updated_at":"2015-08-12T03:18:29Z","closed_at":"2015-08-12T03:18:28Z","merged_at":"2015-08-12T03:18:28Z","merge_commit_sha":"b3f581165e048d2f3dd45fc76f780de9cb0e6d4f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ID25/social/pulls/10/commits","review_comments_url":"https://api.github.com/repos/ID25/social/pulls/10/comments","review_comment_url":"https://api.github.com/repos/ID25/social/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ID25/social/issues/10/comments","statuses_url":"https://api.github.com/repos/ID25/social/statuses/791dc35a7f1fdae30d165ccd79c2ad588e65169e","head":{"label":"ID25:reposts","ref":"reposts","sha":"791dc35a7f1fdae30d165ccd79c2ad588e65169e","user":{"login":"ID25","id":6293295,"avatar_url":"https://avatars.githubusercontent.com/u/6293295?v=3","gravatar_id":"","url":"https://api.github.com/users/ID25","html_url":"https://github.com/ID25","followers_url":"https://api.github.com/users/ID25/followers","following_url":"https://api.github.com/users/ID25/following{/other_user}","gists_url":"https://api.github.com/users/ID25/gists{/gist_id}","starred_url":"https://api.github.com/users/ID25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ID25/subscriptions","organizations_url":"https://api.github.com/users/ID25/orgs","repos_url":"https://api.github.com/users/ID25/repos","events_url":"https://api.github.com/users/ID25/events{/privacy}","received_events_url":"https://api.github.com/users/ID25/received_events","type":"User","site_admin":false},"repo":{"id":30732624,"name":"social","full_name":"ID25/social","owner":{"login":"ID25","id":6293295,"avatar_url":"https://avatars.githubusercontent.com/u/6293295?v=3","gravatar_id":"","url":"https://api.github.com/users/ID25","html_url":"https://github.com/ID25","followers_url":"https://api.github.com/users/ID25/followers","following_url":"https://api.github.com/users/ID25/following{/other_user}","gists_url":"https://api.github.com/users/ID25/gists{/gist_id}","starred_url":"https://api.github.com/users/ID25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ID25/subscriptions","organizations_url":"https://api.github.com/users/ID25/orgs","repos_url":"https://api.github.com/users/ID25/repos","events_url":"https://api.github.com/users/ID25/events{/privacy}","received_events_url":"https://api.github.com/users/ID25/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ID25/social","description":"http://vkontanke.herokuapp.com/","fork":false,"url":"https://api.github.com/repos/ID25/social","forks_url":"https://api.github.com/repos/ID25/social/forks","keys_url":"https://api.github.com/repos/ID25/social/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ID25/social/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ID25/social/teams","hooks_url":"https://api.github.com/repos/ID25/social/hooks","issue_events_url":"https://api.github.com/repos/ID25/social/issues/events{/number}","events_url":"https://api.github.com/repos/ID25/social/events","assignees_url":"https://api.github.com/repos/ID25/social/assignees{/user}","branches_url":"https://api.github.com/repos/ID25/social/branches{/branch}","tags_url":"https://api.github.com/repos/ID25/social/tags","blobs_url":"https://api.github.com/repos/ID25/social/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ID25/social/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ID25/social/git/refs{/sha}","trees_url":"https://api.github.com/repos/ID25/social/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ID25/social/statuses/{sha}","languages_url":"https://api.github.com/repos/ID25/social/languages","stargazers_url":"https://api.github.com/repos/ID25/social/stargazers","contributors_url":"https://api.github.com/repos/ID25/social/contributors","subscribers_url":"https://api.github.com/repos/ID25/social/subscribers","subscription_url":"https://api.github.com/repos/ID25/social/subscription","commits_url":"https://api.github.com/repos/ID25/social/commits{/sha}","git_commits_url":"https://api.github.com/repos/ID25/social/git/commits{/sha}","comments_url":"https://api.github.com/repos/ID25/social/comments{/number}","issue_comment_url":"https://api.github.com/repos/ID25/social/issues/comments{/number}","contents_url":"https://api.github.com/repos/ID25/social/contents/{+path}","compare_url":"https://api.github.com/repos/ID25/social/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ID25/social/merges","archive_url":"https://api.github.com/repos/ID25/social/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ID25/social/downloads","issues_url":"https://api.github.com/repos/ID25/social/issues{/number}","pulls_url":"https://api.github.com/repos/ID25/social/pulls{/number}","milestones_url":"https://api.github.com/repos/ID25/social/milestones{/number}","notifications_url":"https://api.github.com/repos/ID25/social/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ID25/social/labels{/name}","releases_url":"https://api.github.com/repos/ID25/social/releases{/id}","created_at":"2015-02-13T00:26:15Z","updated_at":"2015-04-25T12:32:06Z","pushed_at":"2015-08-12T03:18:29Z","git_url":"git://github.com/ID25/social.git","ssh_url":"git@github.com:ID25/social.git","clone_url":"https://github.com/ID25/social.git","svn_url":"https://github.com/ID25/social","homepage":"","size":2000,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"fb"}},"base":{"label":"ID25:fb","ref":"fb","sha":"61d727a56a2218fc8640bf29d04bc7fdc5f281e1","user":{"login":"ID25","id":6293295,"avatar_url":"https://avatars.githubusercontent.com/u/6293295?v=3","gravatar_id":"","url":"https://api.github.com/users/ID25","html_url":"https://github.com/ID25","followers_url":"https://api.github.com/users/ID25/followers","following_url":"https://api.github.com/users/ID25/following{/other_user}","gists_url":"https://api.github.com/users/ID25/gists{/gist_id}","starred_url":"https://api.github.com/users/ID25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ID25/subscriptions","organizations_url":"https://api.github.com/users/ID25/orgs","repos_url":"https://api.github.com/users/ID25/repos","events_url":"https://api.github.com/users/ID25/events{/privacy}","received_events_url":"https://api.github.com/users/ID25/received_events","type":"User","site_admin":false},"repo":{"id":30732624,"name":"social","full_name":"ID25/social","owner":{"login":"ID25","id":6293295,"avatar_url":"https://avatars.githubusercontent.com/u/6293295?v=3","gravatar_id":"","url":"https://api.github.com/users/ID25","html_url":"https://github.com/ID25","followers_url":"https://api.github.com/users/ID25/followers","following_url":"https://api.github.com/users/ID25/following{/other_user}","gists_url":"https://api.github.com/users/ID25/gists{/gist_id}","starred_url":"https://api.github.com/users/ID25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ID25/subscriptions","organizations_url":"https://api.github.com/users/ID25/orgs","repos_url":"https://api.github.com/users/ID25/repos","events_url":"https://api.github.com/users/ID25/events{/privacy}","received_events_url":"https://api.github.com/users/ID25/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ID25/social","description":"http://vkontanke.herokuapp.com/","fork":false,"url":"https://api.github.com/repos/ID25/social","forks_url":"https://api.github.com/repos/ID25/social/forks","keys_url":"https://api.github.com/repos/ID25/social/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ID25/social/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ID25/social/teams","hooks_url":"https://api.github.com/repos/ID25/social/hooks","issue_events_url":"https://api.github.com/repos/ID25/social/issues/events{/number}","events_url":"https://api.github.com/repos/ID25/social/events","assignees_url":"https://api.github.com/repos/ID25/social/assignees{/user}","branches_url":"https://api.github.com/repos/ID25/social/branches{/branch}","tags_url":"https://api.github.com/repos/ID25/social/tags","blobs_url":"https://api.github.com/repos/ID25/social/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ID25/social/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ID25/social/git/refs{/sha}","trees_url":"https://api.github.com/repos/ID25/social/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ID25/social/statuses/{sha}","languages_url":"https://api.github.com/repos/ID25/social/languages","stargazers_url":"https://api.github.com/repos/ID25/social/stargazers","contributors_url":"https://api.github.com/repos/ID25/social/contributors","subscribers_url":"https://api.github.com/repos/ID25/social/subscribers","subscription_url":"https://api.github.com/repos/ID25/social/subscription","commits_url":"https://api.github.com/repos/ID25/social/commits{/sha}","git_commits_url":"https://api.github.com/repos/ID25/social/git/commits{/sha}","comments_url":"https://api.github.com/repos/ID25/social/comments{/number}","issue_comment_url":"https://api.github.com/repos/ID25/social/issues/comments{/number}","contents_url":"https://api.github.com/repos/ID25/social/contents/{+path}","compare_url":"https://api.github.com/repos/ID25/social/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ID25/social/merges","archive_url":"https://api.github.com/repos/ID25/social/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ID25/social/downloads","issues_url":"https://api.github.com/repos/ID25/social/issues{/number}","pulls_url":"https://api.github.com/repos/ID25/social/pulls{/number}","milestones_url":"https://api.github.com/repos/ID25/social/milestones{/number}","notifications_url":"https://api.github.com/repos/ID25/social/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ID25/social/labels{/name}","releases_url":"https://api.github.com/repos/ID25/social/releases{/id}","created_at":"2015-02-13T00:26:15Z","updated_at":"2015-04-25T12:32:06Z","pushed_at":"2015-08-12T03:18:29Z","git_url":"git://github.com/ID25/social.git","ssh_url":"git@github.com:ID25/social.git","clone_url":"https://github.com/ID25/social.git","svn_url":"https://github.com/ID25/social","homepage":"","size":2000,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"fb"}},"_links":{"self":{"href":"https://api.github.com/repos/ID25/social/pulls/10"},"html":{"href":"https://github.com/ID25/social/pull/10"},"issue":{"href":"https://api.github.com/repos/ID25/social/issues/10"},"comments":{"href":"https://api.github.com/repos/ID25/social/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/ID25/social/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/ID25/social/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ID25/social/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/ID25/social/statuses/791dc35a7f1fdae30d165ccd79c2ad588e65169e"}}}}