{"action":"created","comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/comments/44330397","id":44330397,"diff_hunk":"@@ -599,6 +608,47 @@ - (void)visibilitySwitchAction:(id)sender\n {\n     UISwitch *switcher = (UISwitch *)sender;\n     Blog *blog = [self.resultsController objectAtIndexPath:[NSIndexPath indexPathForRow:switcher.tag inSection:0]];\n+    if(!switcher.on && [self.tableView numberOfRowsInSection:0] > DisableAllMinSites) {\n+        if (self.disabledCount == 0) {","path":"WordPress/Classes/ViewRelated/Blog/BlogListViewController.m","position":35,"original_position":35,"commit_id":"453e1edbf94f9b43ede8dbd2e4ccd531b9e01f4b","original_commit_id":"453e1edbf94f9b43ede8dbd2e4ccd531b9e01f4b","user":{"login":"aerych","id":1435271,"avatar_url":"https://avatars.githubusercontent.com/u/1435271?v=3","gravatar_id":"","url":"https://api.github.com/users/aerych","html_url":"https://github.com/aerych","followers_url":"https://api.github.com/users/aerych/followers","following_url":"https://api.github.com/users/aerych/following{/other_user}","gists_url":"https://api.github.com/users/aerych/gists{/gist_id}","starred_url":"https://api.github.com/users/aerych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerych/subscriptions","organizations_url":"https://api.github.com/users/aerych/orgs","repos_url":"https://api.github.com/users/aerych/repos","events_url":"https://api.github.com/users/aerych/events{/privacy}","received_events_url":"https://api.github.com/users/aerych/received_events","type":"User","site_admin":false},"body":"See earlier comment.  Maybe this conditional isn't necessary?","created_at":"2015-11-09T20:58:13Z","updated_at":"2015-11-09T20:58:13Z","html_url":"https://github.com/wordpress-mobile/WordPress-iOS/pull/4438#discussion_r44330397","pull_request_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/4438","_links":{"self":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/comments/44330397"},"html":{"href":"https://github.com/wordpress-mobile/WordPress-iOS/pull/4438#discussion_r44330397"},"pull_request":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/4438"}}},"pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/4438","id":50073708,"html_url":"https://github.com/wordpress-mobile/WordPress-iOS/pull/4438","diff_url":"https://github.com/wordpress-mobile/WordPress-iOS/pull/4438.diff","patch_url":"https://github.com/wordpress-mobile/WordPress-iOS/pull/4438.patch","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/4438","number":4438,"state":"open","locked":false,"title":"Show a prompt to hide all sites","user":{"login":"argon","id":107645,"avatar_url":"https://avatars.githubusercontent.com/u/107645?v=3","gravatar_id":"","url":"https://api.github.com/users/argon","html_url":"https://github.com/argon","followers_url":"https://api.github.com/users/argon/followers","following_url":"https://api.github.com/users/argon/following{/other_user}","gists_url":"https://api.github.com/users/argon/gists{/gist_id}","starred_url":"https://api.github.com/users/argon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/argon/subscriptions","organizations_url":"https://api.github.com/users/argon/orgs","repos_url":"https://api.github.com/users/argon/repos","events_url":"https://api.github.com/users/argon/events{/privacy}","received_events_url":"https://api.github.com/users/argon/received_events","type":"User","site_admin":false},"body":"On the edit sites screen offer to hide all sites when the user has >10\r\nsites on WordPress.com and disables 6 of them in less than 2 seconds.\r\n\r\nCloses #2709","created_at":"2015-11-08T23:22:42Z","updated_at":"2015-11-09T20:58:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c7bb9db454b7075b90b948c844744f20b0a2f074","assignee":{"login":"kwonye","id":1158819,"avatar_url":"https://avatars.githubusercontent.com/u/1158819?v=3","gravatar_id":"","url":"https://api.github.com/users/kwonye","html_url":"https://github.com/kwonye","followers_url":"https://api.github.com/users/kwonye/followers","following_url":"https://api.github.com/users/kwonye/following{/other_user}","gists_url":"https://api.github.com/users/kwonye/gists{/gist_id}","starred_url":"https://api.github.com/users/kwonye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwonye/subscriptions","organizations_url":"https://api.github.com/users/kwonye/orgs","repos_url":"https://api.github.com/users/kwonye/repos","events_url":"https://api.github.com/users/kwonye/events{/privacy}","received_events_url":"https://api.github.com/users/kwonye/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/milestones/47","html_url":"https://github.com/wordpress-mobile/WordPress-iOS/milestones/5.8","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/milestones/47/labels","id":1188117,"number":47,"title":"5.8","description":null,"creator":{"login":"sendhil","id":437043,"avatar_url":"https://avatars.githubusercontent.com/u/437043?v=3","gravatar_id":"","url":"https://api.github.com/users/sendhil","html_url":"https://github.com/sendhil","followers_url":"https://api.github.com/users/sendhil/followers","following_url":"https://api.github.com/users/sendhil/following{/other_user}","gists_url":"https://api.github.com/users/sendhil/gists{/gist_id}","starred_url":"https://api.github.com/users/sendhil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sendhil/subscriptions","organizations_url":"https://api.github.com/users/sendhil/orgs","repos_url":"https://api.github.com/users/sendhil/repos","events_url":"https://api.github.com/users/sendhil/events{/privacy}","received_events_url":"https://api.github.com/users/sendhil/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":15,"state":"open","created_at":"2015-06-30T23:23:15Z","updated_at":"2015-11-09T18:36:41Z","due_on":"2015-12-11T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/4438/commits","review_comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/4438/comments","review_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/4438/comments","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/statuses/453e1edbf94f9b43ede8dbd2e4ccd531b9e01f4b","head":{"label":"argon:feature/2709-hide-all-sites-prompt","ref":"feature/2709-hide-all-sites-prompt","sha":"453e1edbf94f9b43ede8dbd2e4ccd531b9e01f4b","user":{"login":"argon","id":107645,"avatar_url":"https://avatars.githubusercontent.com/u/107645?v=3","gravatar_id":"","url":"https://api.github.com/users/argon","html_url":"https://github.com/argon","followers_url":"https://api.github.com/users/argon/followers","following_url":"https://api.github.com/users/argon/following{/other_user}","gists_url":"https://api.github.com/users/argon/gists{/gist_id}","starred_url":"https://api.github.com/users/argon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/argon/subscriptions","organizations_url":"https://api.github.com/users/argon/orgs","repos_url":"https://api.github.com/users/argon/repos","events_url":"https://api.github.com/users/argon/events{/privacy}","received_events_url":"https://api.github.com/users/argon/received_events","type":"User","site_admin":false},"repo":{"id":38217062,"name":"WordPress-iOS","full_name":"argon/WordPress-iOS","owner":{"login":"argon","id":107645,"avatar_url":"https://avatars.githubusercontent.com/u/107645?v=3","gravatar_id":"","url":"https://api.github.com/users/argon","html_url":"https://github.com/argon","followers_url":"https://api.github.com/users/argon/followers","following_url":"https://api.github.com/users/argon/following{/other_user}","gists_url":"https://api.github.com/users/argon/gists{/gist_id}","starred_url":"https://api.github.com/users/argon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/argon/subscriptions","organizations_url":"https://api.github.com/users/argon/orgs","repos_url":"https://api.github.com/users/argon/repos","events_url":"https://api.github.com/users/argon/events{/privacy}","received_events_url":"https://api.github.com/users/argon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/argon/WordPress-iOS","description":"WordPress for iOS - Official repository","fork":true,"url":"https://api.github.com/repos/argon/WordPress-iOS","forks_url":"https://api.github.com/repos/argon/WordPress-iOS/forks","keys_url":"https://api.github.com/repos/argon/WordPress-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/argon/WordPress-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/argon/WordPress-iOS/teams","hooks_url":"https://api.github.com/repos/argon/WordPress-iOS/hooks","issue_events_url":"https://api.github.com/repos/argon/WordPress-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/argon/WordPress-iOS/events","assignees_url":"https://api.github.com/repos/argon/WordPress-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/argon/WordPress-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/argon/WordPress-iOS/tags","blobs_url":"https://api.github.com/repos/argon/WordPress-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/argon/WordPress-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/argon/WordPress-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/argon/WordPress-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/argon/WordPress-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/argon/WordPress-iOS/languages","stargazers_url":"https://api.github.com/repos/argon/WordPress-iOS/stargazers","contributors_url":"https://api.github.com/repos/argon/WordPress-iOS/contributors","subscribers_url":"https://api.github.com/repos/argon/WordPress-iOS/subscribers","subscription_url":"https://api.github.com/repos/argon/WordPress-iOS/subscription","commits_url":"https://api.github.com/repos/argon/WordPress-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/argon/WordPress-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/argon/WordPress-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/argon/WordPress-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/argon/WordPress-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/argon/WordPress-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/argon/WordPress-iOS/merges","archive_url":"https://api.github.com/repos/argon/WordPress-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/argon/WordPress-iOS/downloads","issues_url":"https://api.github.com/repos/argon/WordPress-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/argon/WordPress-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/argon/WordPress-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/argon/WordPress-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/argon/WordPress-iOS/labels{/name}","releases_url":"https://api.github.com/repos/argon/WordPress-iOS/releases{/id}","created_at":"2015-06-28T22:46:12Z","updated_at":"2015-06-28T22:46:18Z","pushed_at":"2015-11-08T23:21:45Z","git_url":"git://github.com/argon/WordPress-iOS.git","ssh_url":"git@github.com:argon/WordPress-iOS.git","clone_url":"https://github.com/argon/WordPress-iOS.git","svn_url":"https://github.com/argon/WordPress-iOS","homepage":"http://ios.wordpress.org/","size":243190,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","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":"develop"}},"base":{"label":"wordpress-mobile:develop","ref":"develop","sha":"b919352118fb002acbf1443b8e68be94d658031b","user":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":8859285,"name":"WordPress-iOS","full_name":"wordpress-mobile/WordPress-iOS","owner":{"login":"wordpress-mobile","id":1306301,"avatar_url":"https://avatars.githubusercontent.com/u/1306301?v=3","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wordpress-mobile/WordPress-iOS","description":"WordPress for iOS - Official repository","fork":false,"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS","forks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/forks","keys_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/teams","hooks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/hooks","issue_events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/events{/number}","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/events","assignees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/assignees{/user}","branches_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/branches{/branch}","tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/tags","blobs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/statuses/{sha}","languages_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/languages","stargazers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/stargazers","contributors_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/contributors","subscribers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/subscribers","subscription_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/subscription","commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/contents/{+path}","compare_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/merges","archive_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/downloads","issues_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues{/number}","pulls_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls{/number}","milestones_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/milestones{/number}","notifications_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/labels{/name}","releases_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/releases{/id}","created_at":"2013-03-18T16:59:33Z","updated_at":"2015-11-06T15:52:20Z","pushed_at":"2015-11-09T20:17:21Z","git_url":"git://github.com/wordpress-mobile/WordPress-iOS.git","ssh_url":"git@github.com:wordpress-mobile/WordPress-iOS.git","clone_url":"https://github.com/wordpress-mobile/WordPress-iOS.git","svn_url":"https://github.com/wordpress-mobile/WordPress-iOS","homepage":"http://ios.wordpress.org/","size":416868,"stargazers_count":750,"watchers_count":750,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":375,"mirror_url":null,"open_issues_count":384,"forks":375,"open_issues":384,"watchers":750,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/4438"},"html":{"href":"https://github.com/wordpress-mobile/WordPress-iOS/pull/4438"},"issue":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/4438"},"comments":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/issues/4438/comments"},"review_comments":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/4438/comments"},"review_comment":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/4438/commits"},"statuses":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/statuses/453e1edbf94f9b43ede8dbd2e4ccd531b9e01f4b"}}}}