{"action":"created","comment":{"url":"https://api.github.com/repos/t-vinn/faceHook/pulls/comments/100664516","pull_request_review_id":21383190,"id":100664516,"diff_hunk":"@@ -0,0 +1,31 @@\n+module Users\n+  module Users\n+    class FeedsController < BaseController\n+      def index\n+        @feed = Feed.new\n+        @feeds = Feed.where(\n+          privacy: 1,\n+          user: current_user.following_users\n+        ).or(Feed.where(\n+               privacy: 0\n+        )).or(Feed.where(\n+                user: current_user\n+        ))\n+      end","path":"app/controllers/users/users/feeds_controller.rb","position":14,"original_position":14,"commit_id":"5a9363c86bf36999c07bed8dd4efb106bed51ed7","original_commit_id":"5a9363c86bf36999c07bed8dd4efb106bed51ed7","user":{"login":"NaotoOta","id":8991570,"avatar_url":"https://avatars.githubusercontent.com/u/8991570?v=3","gravatar_id":"","url":"https://api.github.com/users/NaotoOta","html_url":"https://github.com/NaotoOta","followers_url":"https://api.github.com/users/NaotoOta/followers","following_url":"https://api.github.com/users/NaotoOta/following{/other_user}","gists_url":"https://api.github.com/users/NaotoOta/gists{/gist_id}","starred_url":"https://api.github.com/users/NaotoOta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NaotoOta/subscriptions","organizations_url":"https://api.github.com/users/NaotoOta/orgs","repos_url":"https://api.github.com/users/NaotoOta/repos","events_url":"https://api.github.com/users/NaotoOta/events{/privacy}","received_events_url":"https://api.github.com/users/NaotoOta/received_events","type":"User","site_admin":false},"body":"こんなんできんのｗｗ\r\n","created_at":"2017-02-11T10:11:08Z","updated_at":"2017-02-11T10:11:32Z","html_url":"https://github.com/t-vinn/faceHook/pull/10#discussion_r100664516","pull_request_url":"https://api.github.com/repos/t-vinn/faceHook/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/t-vinn/faceHook/pulls/comments/100664516"},"html":{"href":"https://github.com/t-vinn/faceHook/pull/10#discussion_r100664516"},"pull_request":{"href":"https://api.github.com/repos/t-vinn/faceHook/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/t-vinn/faceHook/pulls/10","id":105562850,"html_url":"https://github.com/t-vinn/faceHook/pull/10","diff_url":"https://github.com/t-vinn/faceHook/pull/10.diff","patch_url":"https://github.com/t-vinn/faceHook/pull/10.patch","issue_url":"https://api.github.com/repos/t-vinn/faceHook/issues/10","number":10,"state":"open","locked":false,"title":"Create feeds","user":{"login":"t-vinn","id":15964061,"avatar_url":"https://avatars.githubusercontent.com/u/15964061?v=3","gravatar_id":"","url":"https://api.github.com/users/t-vinn","html_url":"https://github.com/t-vinn","followers_url":"https://api.github.com/users/t-vinn/followers","following_url":"https://api.github.com/users/t-vinn/following{/other_user}","gists_url":"https://api.github.com/users/t-vinn/gists{/gist_id}","starred_url":"https://api.github.com/users/t-vinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-vinn/subscriptions","organizations_url":"https://api.github.com/users/t-vinn/orgs","repos_url":"https://api.github.com/users/t-vinn/repos","events_url":"https://api.github.com/users/t-vinn/events{/privacy}","received_events_url":"https://api.github.com/users/t-vinn/received_events","type":"User","site_admin":false},"body":"user/feedsに投稿一覧表示と新規投稿作成機能\r\nプロトタイプなので以下の点は要修正\r\n- 投稿は文字のみ、字数制限などなし→validation\r\n- そもそもuser/feedsへのリンクがない→ルートに作る？（ただルートは次のファーストビュー作成で弄ることになりそうなのでその時でも？）\r\n- 投稿一覧表示でuser_idを表示しているがおそらくnameに変えた方が良い","created_at":"2017-02-10T04:03:08Z","updated_at":"2017-02-11T10:11:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cff1a82181af23573891ec64dad71c779a70d719","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/t-vinn/faceHook/pulls/10/commits","review_comments_url":"https://api.github.com/repos/t-vinn/faceHook/pulls/10/comments","review_comment_url":"https://api.github.com/repos/t-vinn/faceHook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/t-vinn/faceHook/issues/10/comments","statuses_url":"https://api.github.com/repos/t-vinn/faceHook/statuses/5a9363c86bf36999c07bed8dd4efb106bed51ed7","head":{"label":"t-vinn:create_feeds","ref":"create_feeds","sha":"5a9363c86bf36999c07bed8dd4efb106bed51ed7","user":{"login":"t-vinn","id":15964061,"avatar_url":"https://avatars.githubusercontent.com/u/15964061?v=3","gravatar_id":"","url":"https://api.github.com/users/t-vinn","html_url":"https://github.com/t-vinn","followers_url":"https://api.github.com/users/t-vinn/followers","following_url":"https://api.github.com/users/t-vinn/following{/other_user}","gists_url":"https://api.github.com/users/t-vinn/gists{/gist_id}","starred_url":"https://api.github.com/users/t-vinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-vinn/subscriptions","organizations_url":"https://api.github.com/users/t-vinn/orgs","repos_url":"https://api.github.com/users/t-vinn/repos","events_url":"https://api.github.com/users/t-vinn/events{/privacy}","received_events_url":"https://api.github.com/users/t-vinn/received_events","type":"User","site_admin":false},"repo":{"id":80520301,"name":"faceHook","full_name":"t-vinn/faceHook","owner":{"login":"t-vinn","id":15964061,"avatar_url":"https://avatars.githubusercontent.com/u/15964061?v=3","gravatar_id":"","url":"https://api.github.com/users/t-vinn","html_url":"https://github.com/t-vinn","followers_url":"https://api.github.com/users/t-vinn/followers","following_url":"https://api.github.com/users/t-vinn/following{/other_user}","gists_url":"https://api.github.com/users/t-vinn/gists{/gist_id}","starred_url":"https://api.github.com/users/t-vinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-vinn/subscriptions","organizations_url":"https://api.github.com/users/t-vinn/orgs","repos_url":"https://api.github.com/users/t-vinn/repos","events_url":"https://api.github.com/users/t-vinn/events{/privacy}","received_events_url":"https://api.github.com/users/t-vinn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/t-vinn/faceHook","description":null,"fork":false,"url":"https://api.github.com/repos/t-vinn/faceHook","forks_url":"https://api.github.com/repos/t-vinn/faceHook/forks","keys_url":"https://api.github.com/repos/t-vinn/faceHook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/t-vinn/faceHook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/t-vinn/faceHook/teams","hooks_url":"https://api.github.com/repos/t-vinn/faceHook/hooks","issue_events_url":"https://api.github.com/repos/t-vinn/faceHook/issues/events{/number}","events_url":"https://api.github.com/repos/t-vinn/faceHook/events","assignees_url":"https://api.github.com/repos/t-vinn/faceHook/assignees{/user}","branches_url":"https://api.github.com/repos/t-vinn/faceHook/branches{/branch}","tags_url":"https://api.github.com/repos/t-vinn/faceHook/tags","blobs_url":"https://api.github.com/repos/t-vinn/faceHook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/t-vinn/faceHook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/t-vinn/faceHook/git/refs{/sha}","trees_url":"https://api.github.com/repos/t-vinn/faceHook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/t-vinn/faceHook/statuses/{sha}","languages_url":"https://api.github.com/repos/t-vinn/faceHook/languages","stargazers_url":"https://api.github.com/repos/t-vinn/faceHook/stargazers","contributors_url":"https://api.github.com/repos/t-vinn/faceHook/contributors","subscribers_url":"https://api.github.com/repos/t-vinn/faceHook/subscribers","subscription_url":"https://api.github.com/repos/t-vinn/faceHook/subscription","commits_url":"https://api.github.com/repos/t-vinn/faceHook/commits{/sha}","git_commits_url":"https://api.github.com/repos/t-vinn/faceHook/git/commits{/sha}","comments_url":"https://api.github.com/repos/t-vinn/faceHook/comments{/number}","issue_comment_url":"https://api.github.com/repos/t-vinn/faceHook/issues/comments{/number}","contents_url":"https://api.github.com/repos/t-vinn/faceHook/contents/{+path}","compare_url":"https://api.github.com/repos/t-vinn/faceHook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/t-vinn/faceHook/merges","archive_url":"https://api.github.com/repos/t-vinn/faceHook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/t-vinn/faceHook/downloads","issues_url":"https://api.github.com/repos/t-vinn/faceHook/issues{/number}","pulls_url":"https://api.github.com/repos/t-vinn/faceHook/pulls{/number}","milestones_url":"https://api.github.com/repos/t-vinn/faceHook/milestones{/number}","notifications_url":"https://api.github.com/repos/t-vinn/faceHook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/t-vinn/faceHook/labels{/name}","releases_url":"https://api.github.com/repos/t-vinn/faceHook/releases{/id}","deployments_url":"https://api.github.com/repos/t-vinn/faceHook/deployments","created_at":"2017-01-31T12:55:21Z","updated_at":"2017-02-05T09:11:08Z","pushed_at":"2017-02-11T08:26:51Z","git_url":"git://github.com/t-vinn/faceHook.git","ssh_url":"git@github.com:t-vinn/faceHook.git","clone_url":"https://github.com/t-vinn/faceHook.git","svn_url":"https://github.com/t-vinn/faceHook","homepage":null,"size":134,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"t-vinn:master","ref":"master","sha":"e39a5e67fa7e5499c024c3d627bcdf4a4b637c2d","user":{"login":"t-vinn","id":15964061,"avatar_url":"https://avatars.githubusercontent.com/u/15964061?v=3","gravatar_id":"","url":"https://api.github.com/users/t-vinn","html_url":"https://github.com/t-vinn","followers_url":"https://api.github.com/users/t-vinn/followers","following_url":"https://api.github.com/users/t-vinn/following{/other_user}","gists_url":"https://api.github.com/users/t-vinn/gists{/gist_id}","starred_url":"https://api.github.com/users/t-vinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-vinn/subscriptions","organizations_url":"https://api.github.com/users/t-vinn/orgs","repos_url":"https://api.github.com/users/t-vinn/repos","events_url":"https://api.github.com/users/t-vinn/events{/privacy}","received_events_url":"https://api.github.com/users/t-vinn/received_events","type":"User","site_admin":false},"repo":{"id":80520301,"name":"faceHook","full_name":"t-vinn/faceHook","owner":{"login":"t-vinn","id":15964061,"avatar_url":"https://avatars.githubusercontent.com/u/15964061?v=3","gravatar_id":"","url":"https://api.github.com/users/t-vinn","html_url":"https://github.com/t-vinn","followers_url":"https://api.github.com/users/t-vinn/followers","following_url":"https://api.github.com/users/t-vinn/following{/other_user}","gists_url":"https://api.github.com/users/t-vinn/gists{/gist_id}","starred_url":"https://api.github.com/users/t-vinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-vinn/subscriptions","organizations_url":"https://api.github.com/users/t-vinn/orgs","repos_url":"https://api.github.com/users/t-vinn/repos","events_url":"https://api.github.com/users/t-vinn/events{/privacy}","received_events_url":"https://api.github.com/users/t-vinn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/t-vinn/faceHook","description":null,"fork":false,"url":"https://api.github.com/repos/t-vinn/faceHook","forks_url":"https://api.github.com/repos/t-vinn/faceHook/forks","keys_url":"https://api.github.com/repos/t-vinn/faceHook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/t-vinn/faceHook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/t-vinn/faceHook/teams","hooks_url":"https://api.github.com/repos/t-vinn/faceHook/hooks","issue_events_url":"https://api.github.com/repos/t-vinn/faceHook/issues/events{/number}","events_url":"https://api.github.com/repos/t-vinn/faceHook/events","assignees_url":"https://api.github.com/repos/t-vinn/faceHook/assignees{/user}","branches_url":"https://api.github.com/repos/t-vinn/faceHook/branches{/branch}","tags_url":"https://api.github.com/repos/t-vinn/faceHook/tags","blobs_url":"https://api.github.com/repos/t-vinn/faceHook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/t-vinn/faceHook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/t-vinn/faceHook/git/refs{/sha}","trees_url":"https://api.github.com/repos/t-vinn/faceHook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/t-vinn/faceHook/statuses/{sha}","languages_url":"https://api.github.com/repos/t-vinn/faceHook/languages","stargazers_url":"https://api.github.com/repos/t-vinn/faceHook/stargazers","contributors_url":"https://api.github.com/repos/t-vinn/faceHook/contributors","subscribers_url":"https://api.github.com/repos/t-vinn/faceHook/subscribers","subscription_url":"https://api.github.com/repos/t-vinn/faceHook/subscription","commits_url":"https://api.github.com/repos/t-vinn/faceHook/commits{/sha}","git_commits_url":"https://api.github.com/repos/t-vinn/faceHook/git/commits{/sha}","comments_url":"https://api.github.com/repos/t-vinn/faceHook/comments{/number}","issue_comment_url":"https://api.github.com/repos/t-vinn/faceHook/issues/comments{/number}","contents_url":"https://api.github.com/repos/t-vinn/faceHook/contents/{+path}","compare_url":"https://api.github.com/repos/t-vinn/faceHook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/t-vinn/faceHook/merges","archive_url":"https://api.github.com/repos/t-vinn/faceHook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/t-vinn/faceHook/downloads","issues_url":"https://api.github.com/repos/t-vinn/faceHook/issues{/number}","pulls_url":"https://api.github.com/repos/t-vinn/faceHook/pulls{/number}","milestones_url":"https://api.github.com/repos/t-vinn/faceHook/milestones{/number}","notifications_url":"https://api.github.com/repos/t-vinn/faceHook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/t-vinn/faceHook/labels{/name}","releases_url":"https://api.github.com/repos/t-vinn/faceHook/releases{/id}","deployments_url":"https://api.github.com/repos/t-vinn/faceHook/deployments","created_at":"2017-01-31T12:55:21Z","updated_at":"2017-02-05T09:11:08Z","pushed_at":"2017-02-11T08:26:51Z","git_url":"git://github.com/t-vinn/faceHook.git","ssh_url":"git@github.com:t-vinn/faceHook.git","clone_url":"https://github.com/t-vinn/faceHook.git","svn_url":"https://github.com/t-vinn/faceHook","homepage":null,"size":134,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/t-vinn/faceHook/pulls/10"},"html":{"href":"https://github.com/t-vinn/faceHook/pull/10"},"issue":{"href":"https://api.github.com/repos/t-vinn/faceHook/issues/10"},"comments":{"href":"https://api.github.com/repos/t-vinn/faceHook/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/t-vinn/faceHook/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/t-vinn/faceHook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/t-vinn/faceHook/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/t-vinn/faceHook/statuses/5a9363c86bf36999c07bed8dd4efb106bed51ed7"}}}}
{"actor":{"display_login":"NaotoOta"}}