{"action":"created","comment":{"url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/comments/77047241","id":77047241,"diff_hunk":"@@ -192,135 +145,149 @@ function renderCommentReply(props) {\n   );\n }\n \n-function renderReplies(props) {\n-  const { op, nestingLevel, comment, commentCollapsed } = props;\n \n-  let cls = 'Comment__replies';\n-  if (commentCollapsed) { cls += ' m-hidden'; }\n-  if (nestingLevel > 5) { cls += ' m-no-indent'; }\n+function renderReplies(props) {\n+  const { op, nestingLevel, comment, commentCollapsed, moreCommentStatus } = props;\n \n-  if (nestingLevel > 100) {\n-    return (\n-      <div className='see-more-comment'>See More Placeholder</div>\n-    );\n-  }\n+  const className = cx('Comment__replies', {\n+    'm-hidden': commentCollapsed,\n+    'm-no-ident': nestingLevel > 5,\n+  });\n \n   return (\n-    <div className={ cls }>\n+    <div className={ className }>\n       <CommentsList\n         op={ op }\n         commentRecords={ comment.replies }\n         parentComment={ comment }\n         nestingLevel={ nestingLevel + 1 }\n       />\n-      { renderLoadMore(comment, props.loadMore) }\n+\n+      { comment.numReplies === 0 || moreCommentStatus.loaded\n+        ? null\n+        : renderMoreCommentsButton(props)\n+      }\n+\n     </div>\n   );\n }\n \n+function renderMoreCommentsButton(props) {\n+  const { comment, moreCommentStatus, onLoadMore } = props;\n+\n+  const loadingText = moreCommentStatus.loading\n+    ? LOADING_MORE_COMMENTS\n+    : `${LOAD_MORE_COMMENTS} (${comment.numReplies})`;\n+\n+  return (\n+    <div className='Comment__loadMore' onClick={ onLoadMore }>\n+      <div className='icon icon-caron-circled' />\n+      <a href={ comment.permalink }>{ loadingText }</a>\n+    </div>\n+  );\n+}\n+\n+\n Comment.propTypes = {\n-  parentCreated: T.number,\n-  postCreated: T.number,\n-  comment: T.instanceOf(CommentModel),\n-  user: T.object,\n+  user: T.object.isRequired,\n+  currentPage: T.object.isRequired,\n+  comment: T.instanceOf(models.CommentModel).isRequired,\n+  moreCommentStatus: T.object.isRequired,\n+  commentCollapsed: T.bool.isRequired,\n+  commentReplying: T.bool.isRequired,\n+  isEditing: T.bool.isRequired,","path":"src/app/components/Comment/index.jsx","position":269,"original_position":269,"commit_id":"871e98cf31377f1700fc0a2eb7d88d27d5515b7c","original_commit_id":"871e98cf31377f1700fc0a2eb7d88d27d5515b7c","user":{"login":"phil303","id":787203,"avatar_url":"https://avatars.githubusercontent.com/u/787203?v=3","gravatar_id":"","url":"https://api.github.com/users/phil303","html_url":"https://github.com/phil303","followers_url":"https://api.github.com/users/phil303/followers","following_url":"https://api.github.com/users/phil303/following{/other_user}","gists_url":"https://api.github.com/users/phil303/gists{/gist_id}","starred_url":"https://api.github.com/users/phil303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil303/subscriptions","organizations_url":"https://api.github.com/users/phil303/orgs","repos_url":"https://api.github.com/users/phil303/repos","events_url":"https://api.github.com/users/phil303/events{/privacy}","received_events_url":"https://api.github.com/users/phil303/received_events","type":"User","site_admin":false},"body":"maybe alphabetize within groups","created_at":"2016-08-31T18:39:14Z","updated_at":"2016-08-31T18:39:14Z","html_url":"https://github.com/reddit/reddit-mobile/pull/708#discussion_r77047241","pull_request_url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/708","_links":{"self":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/comments/77047241"},"html":{"href":"https://github.com/reddit/reddit-mobile/pull/708#discussion_r77047241"},"pull_request":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/708"}}},"pull_request":{"url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/708","id":83350944,"html_url":"https://github.com/reddit/reddit-mobile/pull/708","diff_url":"https://github.com/reddit/reddit-mobile/pull/708.diff","patch_url":"https://github.com/reddit/reddit-mobile/pull/708.patch","issue_url":"https://api.github.com/repos/reddit/reddit-mobile/issues/708","number":708,"state":"open","locked":false,"title":"More comments","user":{"login":"phil303","id":787203,"avatar_url":"https://avatars.githubusercontent.com/u/787203?v=3","gravatar_id":"","url":"https://api.github.com/users/phil303","html_url":"https://github.com/phil303","followers_url":"https://api.github.com/users/phil303/followers","following_url":"https://api.github.com/users/phil303/following{/other_user}","gists_url":"https://api.github.com/users/phil303/gists{/gist_id}","starred_url":"https://api.github.com/users/phil303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil303/subscriptions","organizations_url":"https://api.github.com/users/phil303/orgs","repos_url":"https://api.github.com/users/phil303/repos","events_url":"https://api.github.com/users/phil303/events{/privacy}","received_events_url":"https://api.github.com/users/phil303/received_events","type":"User","site_admin":false},"body":"Need to do a clean up pass but making this for a live code review tomorrow","created_at":"2016-08-30T21:29:55Z","updated_at":"2016-08-31T18:39:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28c511fe521128266b63c58a764dd6939d64a74c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/708/commits","review_comments_url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/708/comments","review_comment_url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reddit/reddit-mobile/issues/708/comments","statuses_url":"https://api.github.com/repos/reddit/reddit-mobile/statuses/871e98cf31377f1700fc0a2eb7d88d27d5515b7c","head":{"label":"phil303:more-comments","ref":"more-comments","sha":"871e98cf31377f1700fc0a2eb7d88d27d5515b7c","user":{"login":"phil303","id":787203,"avatar_url":"https://avatars.githubusercontent.com/u/787203?v=3","gravatar_id":"","url":"https://api.github.com/users/phil303","html_url":"https://github.com/phil303","followers_url":"https://api.github.com/users/phil303/followers","following_url":"https://api.github.com/users/phil303/following{/other_user}","gists_url":"https://api.github.com/users/phil303/gists{/gist_id}","starred_url":"https://api.github.com/users/phil303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil303/subscriptions","organizations_url":"https://api.github.com/users/phil303/orgs","repos_url":"https://api.github.com/users/phil303/repos","events_url":"https://api.github.com/users/phil303/events{/privacy}","received_events_url":"https://api.github.com/users/phil303/received_events","type":"User","site_admin":false},"repo":{"id":59247570,"name":"reddit-mobile","full_name":"phil303/reddit-mobile","owner":{"login":"phil303","id":787203,"avatar_url":"https://avatars.githubusercontent.com/u/787203?v=3","gravatar_id":"","url":"https://api.github.com/users/phil303","html_url":"https://github.com/phil303","followers_url":"https://api.github.com/users/phil303/followers","following_url":"https://api.github.com/users/phil303/following{/other_user}","gists_url":"https://api.github.com/users/phil303/gists{/gist_id}","starred_url":"https://api.github.com/users/phil303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil303/subscriptions","organizations_url":"https://api.github.com/users/phil303/orgs","repos_url":"https://api.github.com/users/phil303/repos","events_url":"https://api.github.com/users/phil303/events{/privacy}","received_events_url":"https://api.github.com/users/phil303/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phil303/reddit-mobile","description":"","fork":true,"url":"https://api.github.com/repos/phil303/reddit-mobile","forks_url":"https://api.github.com/repos/phil303/reddit-mobile/forks","keys_url":"https://api.github.com/repos/phil303/reddit-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phil303/reddit-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phil303/reddit-mobile/teams","hooks_url":"https://api.github.com/repos/phil303/reddit-mobile/hooks","issue_events_url":"https://api.github.com/repos/phil303/reddit-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/phil303/reddit-mobile/events","assignees_url":"https://api.github.com/repos/phil303/reddit-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/phil303/reddit-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/phil303/reddit-mobile/tags","blobs_url":"https://api.github.com/repos/phil303/reddit-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phil303/reddit-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phil303/reddit-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/phil303/reddit-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phil303/reddit-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/phil303/reddit-mobile/languages","stargazers_url":"https://api.github.com/repos/phil303/reddit-mobile/stargazers","contributors_url":"https://api.github.com/repos/phil303/reddit-mobile/contributors","subscribers_url":"https://api.github.com/repos/phil303/reddit-mobile/subscribers","subscription_url":"https://api.github.com/repos/phil303/reddit-mobile/subscription","commits_url":"https://api.github.com/repos/phil303/reddit-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/phil303/reddit-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/phil303/reddit-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/phil303/reddit-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/phil303/reddit-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/phil303/reddit-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phil303/reddit-mobile/merges","archive_url":"https://api.github.com/repos/phil303/reddit-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phil303/reddit-mobile/downloads","issues_url":"https://api.github.com/repos/phil303/reddit-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/phil303/reddit-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/phil303/reddit-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/phil303/reddit-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phil303/reddit-mobile/labels{/name}","releases_url":"https://api.github.com/repos/phil303/reddit-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/phil303/reddit-mobile/deployments","created_at":"2016-05-19T22:33:07Z","updated_at":"2016-05-19T22:33:10Z","pushed_at":"2016-08-31T18:22:57Z","git_url":"git://github.com/phil303/reddit-mobile.git","ssh_url":"git@github.com:phil303/reddit-mobile.git","clone_url":"https://github.com/phil303/reddit-mobile.git","svn_url":"https://github.com/phil303/reddit-mobile","homepage":null,"size":6780,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"reddit:2X","ref":"2X","sha":"423bb02b25987ac5c69e6f90af8e9b4053bbf64b","user":{"login":"reddit","id":14248,"avatar_url":"https://avatars.githubusercontent.com/u/14248?v=3","gravatar_id":"","url":"https://api.github.com/users/reddit","html_url":"https://github.com/reddit","followers_url":"https://api.github.com/users/reddit/followers","following_url":"https://api.github.com/users/reddit/following{/other_user}","gists_url":"https://api.github.com/users/reddit/gists{/gist_id}","starred_url":"https://api.github.com/users/reddit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reddit/subscriptions","organizations_url":"https://api.github.com/users/reddit/orgs","repos_url":"https://api.github.com/users/reddit/repos","events_url":"https://api.github.com/users/reddit/events{/privacy}","received_events_url":"https://api.github.com/users/reddit/received_events","type":"Organization","site_admin":false},"repo":{"id":23087554,"name":"reddit-mobile","full_name":"reddit/reddit-mobile","owner":{"login":"reddit","id":14248,"avatar_url":"https://avatars.githubusercontent.com/u/14248?v=3","gravatar_id":"","url":"https://api.github.com/users/reddit","html_url":"https://github.com/reddit","followers_url":"https://api.github.com/users/reddit/followers","following_url":"https://api.github.com/users/reddit/following{/other_user}","gists_url":"https://api.github.com/users/reddit/gists{/gist_id}","starred_url":"https://api.github.com/users/reddit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reddit/subscriptions","organizations_url":"https://api.github.com/users/reddit/orgs","repos_url":"https://api.github.com/users/reddit/repos","events_url":"https://api.github.com/users/reddit/events{/privacy}","received_events_url":"https://api.github.com/users/reddit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/reddit/reddit-mobile","description":"","fork":false,"url":"https://api.github.com/repos/reddit/reddit-mobile","forks_url":"https://api.github.com/repos/reddit/reddit-mobile/forks","keys_url":"https://api.github.com/repos/reddit/reddit-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reddit/reddit-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reddit/reddit-mobile/teams","hooks_url":"https://api.github.com/repos/reddit/reddit-mobile/hooks","issue_events_url":"https://api.github.com/repos/reddit/reddit-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/reddit/reddit-mobile/events","assignees_url":"https://api.github.com/repos/reddit/reddit-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/reddit/reddit-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/reddit/reddit-mobile/tags","blobs_url":"https://api.github.com/repos/reddit/reddit-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reddit/reddit-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reddit/reddit-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/reddit/reddit-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reddit/reddit-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/reddit/reddit-mobile/languages","stargazers_url":"https://api.github.com/repos/reddit/reddit-mobile/stargazers","contributors_url":"https://api.github.com/repos/reddit/reddit-mobile/contributors","subscribers_url":"https://api.github.com/repos/reddit/reddit-mobile/subscribers","subscription_url":"https://api.github.com/repos/reddit/reddit-mobile/subscription","commits_url":"https://api.github.com/repos/reddit/reddit-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/reddit/reddit-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/reddit/reddit-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/reddit/reddit-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/reddit/reddit-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/reddit/reddit-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reddit/reddit-mobile/merges","archive_url":"https://api.github.com/repos/reddit/reddit-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reddit/reddit-mobile/downloads","issues_url":"https://api.github.com/repos/reddit/reddit-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/reddit/reddit-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/reddit/reddit-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/reddit/reddit-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reddit/reddit-mobile/labels{/name}","releases_url":"https://api.github.com/repos/reddit/reddit-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/reddit/reddit-mobile/deployments","created_at":"2014-08-18T21:42:05Z","updated_at":"2016-08-26T20:32:20Z","pushed_at":"2016-08-31T18:22:57Z","git_url":"git://github.com/reddit/reddit-mobile.git","ssh_url":"git@github.com:reddit/reddit-mobile.git","clone_url":"https://github.com/reddit/reddit-mobile.git","svn_url":"https://github.com/reddit/reddit-mobile","homepage":null,"size":10350,"stargazers_count":838,"watchers_count":838,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":140,"mirror_url":null,"open_issues_count":25,"forks":140,"open_issues":25,"watchers":838,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/708"},"html":{"href":"https://github.com/reddit/reddit-mobile/pull/708"},"issue":{"href":"https://api.github.com/repos/reddit/reddit-mobile/issues/708"},"comments":{"href":"https://api.github.com/repos/reddit/reddit-mobile/issues/708/comments"},"review_comments":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/708/comments"},"review_comment":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/708/commits"},"statuses":{"href":"https://api.github.com/repos/reddit/reddit-mobile/statuses/871e98cf31377f1700fc0a2eb7d88d27d5515b7c"}}}}
{"actor":{"display_login":"phil303"}}