{"action":"created","comment":{"url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/comments/67751593","id":67751593,"diff_hunk":"@@ -195,6 +195,42 @@ class ListingPage extends BasePage {\n     this.setState({ expandComments: true });\n   }\n \n+  renderThreadNotice(subreddit, listing, commentId) {\n+    let message;\n+    if (commentId) {\n+      message = (\n+        <p>\n+          <span>You are viewing a single comment's thread. </span>\n+          <a href={ listing.permalink }>View the rest of the comments</a>\n+        </p>\n+      );\n+    }\n+\n+    if (subreddit && subreddit.user_is_banned) {\n+      message = <p>You are banned from commenting</p>;","path":"src/views/pages/listing.jsx","position":16,"original_position":16,"commit_id":"293632bc516a0ea5d5a6f0dbd1b142bf704f6bab","original_commit_id":"293632bc516a0ea5d5a6f0dbd1b142bf704f6bab","user":{"login":"schwers","id":307983,"avatar_url":"https://avatars.githubusercontent.com/u/307983?v=3","gravatar_id":"","url":"https://api.github.com/users/schwers","html_url":"https://github.com/schwers","followers_url":"https://api.github.com/users/schwers/followers","following_url":"https://api.github.com/users/schwers/following{/other_user}","gists_url":"https://api.github.com/users/schwers/gists{/gist_id}","starred_url":"https://api.github.com/users/schwers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schwers/subscriptions","organizations_url":"https://api.github.com/users/schwers/orgs","repos_url":"https://api.github.com/users/schwers/repos","events_url":"https://api.github.com/users/schwers/events{/privacy}","received_events_url":"https://api.github.com/users/schwers/received_events","type":"User","site_admin":false},"body":"🔕 Should we mention \"from this subreddit\" ?","created_at":"2016-06-20T19:32:50Z","updated_at":"2016-06-20T19:32:50Z","html_url":"https://github.com/reddit/reddit-mobile/pull/623#discussion_r67751593","pull_request_url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/623","_links":{"self":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/comments/67751593"},"html":{"href":"https://github.com/reddit/reddit-mobile/pull/623#discussion_r67751593"},"pull_request":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/623"}}},"pull_request":{"url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/623","id":74495165,"html_url":"https://github.com/reddit/reddit-mobile/pull/623","diff_url":"https://github.com/reddit/reddit-mobile/pull/623.diff","patch_url":"https://github.com/reddit/reddit-mobile/pull/623.patch","issue_url":"https://api.github.com/repos/reddit/reddit-mobile/issues/623","number":623,"state":"open","locked":false,"title":"Comment page: disable reply for banned users","user":{"login":"curioussavage","id":7064600,"avatar_url":"https://avatars.githubusercontent.com/u/7064600?v=3","gravatar_id":"","url":"https://api.github.com/users/curioussavage","html_url":"https://github.com/curioussavage","followers_url":"https://api.github.com/users/curioussavage/followers","following_url":"https://api.github.com/users/curioussavage/following{/other_user}","gists_url":"https://api.github.com/users/curioussavage/gists{/gist_id}","starred_url":"https://api.github.com/users/curioussavage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curioussavage/subscriptions","organizations_url":"https://api.github.com/users/curioussavage/orgs","repos_url":"https://api.github.com/users/curioussavage/repos","events_url":"https://api.github.com/users/curioussavage/events{/privacy}","received_events_url":"https://api.github.com/users/curioussavage/received_events","type":"User","site_admin":false},"body":"Also refactored to show the same alert used to notify users\r\nthat they are on a permalink page for banned users and when\r\nthe post is locked or archived\r\n\r\n👓  @schwers \r\n\r\nI saw [this](https://www.reddit.com/r/mobileweb/comments/4ovwre/better_handling_of_subreddit_bans_and_disabled/) in the channel last night and it looked easy so here we are.\r\n\r\nAs you can see here in the screenshot I changed it to use the same alert we use for permalink pages. I think it is much more noticeable. Let me know what you think.\r\n![screen shot 2016-06-20 at 11 36 33 am](https://cloud.githubusercontent.com/assets/7064600/16206517/a27a1eb4-36dd-11e6-9591-cca19bafc67b.png)\r\n","created_at":"2016-06-20T19:02:10Z","updated_at":"2016-06-20T19:32:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9cd14d7ab517ae8bad1c951b265cec5176a433bb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/623/commits","review_comments_url":"https://api.github.com/repos/reddit/reddit-mobile/pulls/623/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/623/comments","statuses_url":"https://api.github.com/repos/reddit/reddit-mobile/statuses/293632bc516a0ea5d5a6f0dbd1b142bf704f6bab","head":{"label":"curioussavage:banned","ref":"banned","sha":"293632bc516a0ea5d5a6f0dbd1b142bf704f6bab","user":{"login":"curioussavage","id":7064600,"avatar_url":"https://avatars.githubusercontent.com/u/7064600?v=3","gravatar_id":"","url":"https://api.github.com/users/curioussavage","html_url":"https://github.com/curioussavage","followers_url":"https://api.github.com/users/curioussavage/followers","following_url":"https://api.github.com/users/curioussavage/following{/other_user}","gists_url":"https://api.github.com/users/curioussavage/gists{/gist_id}","starred_url":"https://api.github.com/users/curioussavage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curioussavage/subscriptions","organizations_url":"https://api.github.com/users/curioussavage/orgs","repos_url":"https://api.github.com/users/curioussavage/repos","events_url":"https://api.github.com/users/curioussavage/events{/privacy}","received_events_url":"https://api.github.com/users/curioussavage/received_events","type":"User","site_admin":false},"repo":{"id":35171597,"name":"reddit-mobile","full_name":"curioussavage/reddit-mobile","owner":{"login":"curioussavage","id":7064600,"avatar_url":"https://avatars.githubusercontent.com/u/7064600?v=3","gravatar_id":"","url":"https://api.github.com/users/curioussavage","html_url":"https://github.com/curioussavage","followers_url":"https://api.github.com/users/curioussavage/followers","following_url":"https://api.github.com/users/curioussavage/following{/other_user}","gists_url":"https://api.github.com/users/curioussavage/gists{/gist_id}","starred_url":"https://api.github.com/users/curioussavage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curioussavage/subscriptions","organizations_url":"https://api.github.com/users/curioussavage/orgs","repos_url":"https://api.github.com/users/curioussavage/repos","events_url":"https://api.github.com/users/curioussavage/events{/privacy}","received_events_url":"https://api.github.com/users/curioussavage/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/curioussavage/reddit-mobile","description":"","fork":true,"url":"https://api.github.com/repos/curioussavage/reddit-mobile","forks_url":"https://api.github.com/repos/curioussavage/reddit-mobile/forks","keys_url":"https://api.github.com/repos/curioussavage/reddit-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/curioussavage/reddit-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/curioussavage/reddit-mobile/teams","hooks_url":"https://api.github.com/repos/curioussavage/reddit-mobile/hooks","issue_events_url":"https://api.github.com/repos/curioussavage/reddit-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/curioussavage/reddit-mobile/events","assignees_url":"https://api.github.com/repos/curioussavage/reddit-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/curioussavage/reddit-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/curioussavage/reddit-mobile/tags","blobs_url":"https://api.github.com/repos/curioussavage/reddit-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/curioussavage/reddit-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/curioussavage/reddit-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/curioussavage/reddit-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/curioussavage/reddit-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/curioussavage/reddit-mobile/languages","stargazers_url":"https://api.github.com/repos/curioussavage/reddit-mobile/stargazers","contributors_url":"https://api.github.com/repos/curioussavage/reddit-mobile/contributors","subscribers_url":"https://api.github.com/repos/curioussavage/reddit-mobile/subscribers","subscription_url":"https://api.github.com/repos/curioussavage/reddit-mobile/subscription","commits_url":"https://api.github.com/repos/curioussavage/reddit-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/curioussavage/reddit-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/curioussavage/reddit-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/curioussavage/reddit-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/curioussavage/reddit-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/curioussavage/reddit-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/curioussavage/reddit-mobile/merges","archive_url":"https://api.github.com/repos/curioussavage/reddit-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/curioussavage/reddit-mobile/downloads","issues_url":"https://api.github.com/repos/curioussavage/reddit-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/curioussavage/reddit-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/curioussavage/reddit-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/curioussavage/reddit-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/curioussavage/reddit-mobile/labels{/name}","releases_url":"https://api.github.com/repos/curioussavage/reddit-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/curioussavage/reddit-mobile/deployments","created_at":"2015-05-06T16:55:50Z","updated_at":"2016-01-21T19:27:43Z","pushed_at":"2016-06-20T18:51:19Z","git_url":"git://github.com/curioussavage/reddit-mobile.git","ssh_url":"git@github.com:curioussavage/reddit-mobile.git","clone_url":"https://github.com/curioussavage/reddit-mobile.git","svn_url":"https://github.com/curioussavage/reddit-mobile","homepage":null,"size":3696,"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:master","ref":"master","sha":"abddc06c5e6f50c75f1a8143f089b4d077ad5fcd","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-06-17T23:35:36Z","pushed_at":"2016-06-20T19:02:10Z","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":9945,"stargazers_count":793,"watchers_count":793,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":125,"mirror_url":null,"open_issues_count":20,"forks":125,"open_issues":20,"watchers":793,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/623"},"html":{"href":"https://github.com/reddit/reddit-mobile/pull/623"},"issue":{"href":"https://api.github.com/repos/reddit/reddit-mobile/issues/623"},"comments":{"href":"https://api.github.com/repos/reddit/reddit-mobile/issues/623/comments"},"review_comments":{"href":"https://api.github.com/repos/reddit/reddit-mobile/pulls/623/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/623/commits"},"statuses":{"href":"https://api.github.com/repos/reddit/reddit-mobile/statuses/293632bc516a0ea5d5a6f0dbd1b142bf704f6bab"}}}}
{"actor":{"display_login":"schwers"}}