{"action":"created","comment":{"url":"https://api.github.com/repos/Floens/Clover/pulls/comments/78299349","id":78299349,"diff_hunk":"@@ -250,22 +250,36 @@ public void onChanLoaderData(ChanThread result) {\n         showPosts();\n \n         if (loadable.isThreadMode()) {\n+            boolean newPosts = false;\n             int lastLoaded = loadable.lastLoaded;\n+\n             List<Post> posts = result.posts;\n+            List<PostImage> images = new ArrayList<>();\n+\n             int more = 0;\n             if (lastLoaded > 0) {\n                 for (int i = 0; i < posts.size(); i++) {\n                     Post post = posts.get(i);\n+\n+                    if(newPosts) {\n+                        if(post.hasImage) {","path":"Clover/app/src/main/java/org/floens/chan/core/presenter/ThreadPresenter.java","position":16,"original_position":16,"commit_id":"6e19108e5686f689e0eb61d7650fff3482dbf9b5","original_commit_id":"6e19108e5686f689e0eb61d7650fff3482dbf9b5","user":{"login":"Floens","id":1012578,"avatar_url":"https://avatars.githubusercontent.com/u/1012578?v=3","gravatar_id":"","url":"https://api.github.com/users/Floens","html_url":"https://github.com/Floens","followers_url":"https://api.github.com/users/Floens/followers","following_url":"https://api.github.com/users/Floens/following{/other_user}","gists_url":"https://api.github.com/users/Floens/gists{/gist_id}","starred_url":"https://api.github.com/users/Floens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Floens/subscriptions","organizations_url":"https://api.github.com/users/Floens/orgs","repos_url":"https://api.github.com/users/Floens/repos","events_url":"https://api.github.com/users/Floens/events{/privacy}","received_events_url":"https://api.github.com/users/Floens/received_events","type":"User","site_admin":false},"body":"Please collapse these two `if`s","created_at":"2016-09-11T17:50:56Z","updated_at":"2016-09-11T17:50:56Z","html_url":"https://github.com/Floens/Clover/pull/229#discussion_r78299349","pull_request_url":"https://api.github.com/repos/Floens/Clover/pulls/229","_links":{"self":{"href":"https://api.github.com/repos/Floens/Clover/pulls/comments/78299349"},"html":{"href":"https://github.com/Floens/Clover/pull/229#discussion_r78299349"},"pull_request":{"href":"https://api.github.com/repos/Floens/Clover/pulls/229"}}},"pull_request":{"url":"https://api.github.com/repos/Floens/Clover/pulls/229","id":84787884,"html_url":"https://github.com/Floens/Clover/pull/229","diff_url":"https://github.com/Floens/Clover/pull/229.diff","patch_url":"https://github.com/Floens/Clover/pull/229.patch","issue_url":"https://api.github.com/repos/Floens/Clover/issues/229","number":229,"state":"open","locked":false,"title":"Add images to ImageViwer while it is open","user":{"login":"beschoenen","id":1887585,"avatar_url":"https://avatars.githubusercontent.com/u/1887585?v=3","gravatar_id":"","url":"https://api.github.com/users/beschoenen","html_url":"https://github.com/beschoenen","followers_url":"https://api.github.com/users/beschoenen/followers","following_url":"https://api.github.com/users/beschoenen/following{/other_user}","gists_url":"https://api.github.com/users/beschoenen/gists{/gist_id}","starred_url":"https://api.github.com/users/beschoenen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beschoenen/subscriptions","organizations_url":"https://api.github.com/users/beschoenen/orgs","repos_url":"https://api.github.com/users/beschoenen/repos","events_url":"https://api.github.com/users/beschoenen/events{/privacy}","received_events_url":"https://api.github.com/users/beschoenen/received_events","type":"User","site_admin":false},"body":"This PR adds the ability to add images to the thread ImageViewer while it is open.\r\n\r\nIt is kinda hacky atm and I would like your feedback on it, @Floens.\r\n\r\nPlease don't merge at this time!","created_at":"2016-09-11T14:28:25Z","updated_at":"2016-09-11T17:50:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"037a59ddaac2159a0c369f46d1d1b956a4503906","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Floens/Clover/pulls/229/commits","review_comments_url":"https://api.github.com/repos/Floens/Clover/pulls/229/comments","review_comment_url":"https://api.github.com/repos/Floens/Clover/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Floens/Clover/issues/229/comments","statuses_url":"https://api.github.com/repos/Floens/Clover/statuses/6e19108e5686f689e0eb61d7650fff3482dbf9b5","head":{"label":"beschoenen:dev","ref":"dev","sha":"6e19108e5686f689e0eb61d7650fff3482dbf9b5","user":{"login":"beschoenen","id":1887585,"avatar_url":"https://avatars.githubusercontent.com/u/1887585?v=3","gravatar_id":"","url":"https://api.github.com/users/beschoenen","html_url":"https://github.com/beschoenen","followers_url":"https://api.github.com/users/beschoenen/followers","following_url":"https://api.github.com/users/beschoenen/following{/other_user}","gists_url":"https://api.github.com/users/beschoenen/gists{/gist_id}","starred_url":"https://api.github.com/users/beschoenen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beschoenen/subscriptions","organizations_url":"https://api.github.com/users/beschoenen/orgs","repos_url":"https://api.github.com/users/beschoenen/repos","events_url":"https://api.github.com/users/beschoenen/events{/privacy}","received_events_url":"https://api.github.com/users/beschoenen/received_events","type":"User","site_admin":false},"repo":{"id":67934155,"name":"Clover","full_name":"beschoenen/Clover","owner":{"login":"beschoenen","id":1887585,"avatar_url":"https://avatars.githubusercontent.com/u/1887585?v=3","gravatar_id":"","url":"https://api.github.com/users/beschoenen","html_url":"https://github.com/beschoenen","followers_url":"https://api.github.com/users/beschoenen/followers","following_url":"https://api.github.com/users/beschoenen/following{/other_user}","gists_url":"https://api.github.com/users/beschoenen/gists{/gist_id}","starred_url":"https://api.github.com/users/beschoenen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beschoenen/subscriptions","organizations_url":"https://api.github.com/users/beschoenen/orgs","repos_url":"https://api.github.com/users/beschoenen/repos","events_url":"https://api.github.com/users/beschoenen/events{/privacy}","received_events_url":"https://api.github.com/users/beschoenen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beschoenen/Clover","description":"Clover - 4chan browser for Android","fork":true,"url":"https://api.github.com/repos/beschoenen/Clover","forks_url":"https://api.github.com/repos/beschoenen/Clover/forks","keys_url":"https://api.github.com/repos/beschoenen/Clover/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beschoenen/Clover/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beschoenen/Clover/teams","hooks_url":"https://api.github.com/repos/beschoenen/Clover/hooks","issue_events_url":"https://api.github.com/repos/beschoenen/Clover/issues/events{/number}","events_url":"https://api.github.com/repos/beschoenen/Clover/events","assignees_url":"https://api.github.com/repos/beschoenen/Clover/assignees{/user}","branches_url":"https://api.github.com/repos/beschoenen/Clover/branches{/branch}","tags_url":"https://api.github.com/repos/beschoenen/Clover/tags","blobs_url":"https://api.github.com/repos/beschoenen/Clover/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beschoenen/Clover/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beschoenen/Clover/git/refs{/sha}","trees_url":"https://api.github.com/repos/beschoenen/Clover/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beschoenen/Clover/statuses/{sha}","languages_url":"https://api.github.com/repos/beschoenen/Clover/languages","stargazers_url":"https://api.github.com/repos/beschoenen/Clover/stargazers","contributors_url":"https://api.github.com/repos/beschoenen/Clover/contributors","subscribers_url":"https://api.github.com/repos/beschoenen/Clover/subscribers","subscription_url":"https://api.github.com/repos/beschoenen/Clover/subscription","commits_url":"https://api.github.com/repos/beschoenen/Clover/commits{/sha}","git_commits_url":"https://api.github.com/repos/beschoenen/Clover/git/commits{/sha}","comments_url":"https://api.github.com/repos/beschoenen/Clover/comments{/number}","issue_comment_url":"https://api.github.com/repos/beschoenen/Clover/issues/comments{/number}","contents_url":"https://api.github.com/repos/beschoenen/Clover/contents/{+path}","compare_url":"https://api.github.com/repos/beschoenen/Clover/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beschoenen/Clover/merges","archive_url":"https://api.github.com/repos/beschoenen/Clover/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beschoenen/Clover/downloads","issues_url":"https://api.github.com/repos/beschoenen/Clover/issues{/number}","pulls_url":"https://api.github.com/repos/beschoenen/Clover/pulls{/number}","milestones_url":"https://api.github.com/repos/beschoenen/Clover/milestones{/number}","notifications_url":"https://api.github.com/repos/beschoenen/Clover/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beschoenen/Clover/labels{/name}","releases_url":"https://api.github.com/repos/beschoenen/Clover/releases{/id}","deployments_url":"https://api.github.com/repos/beschoenen/Clover/deployments","created_at":"2016-09-11T14:25:15Z","updated_at":"2016-09-11T14:25:17Z","pushed_at":"2016-09-11T14:26:30Z","git_url":"git://github.com/beschoenen/Clover.git","ssh_url":"git@github.com:beschoenen/Clover.git","clone_url":"https://github.com/beschoenen/Clover.git","svn_url":"https://github.com/beschoenen/Clover","homepage":"http://floens.github.io/Clover/","size":43284,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"dev"}},"base":{"label":"Floens:dev","ref":"dev","sha":"d50508268e4fbb16af157b602fc8c07c9c2bb669","user":{"login":"Floens","id":1012578,"avatar_url":"https://avatars.githubusercontent.com/u/1012578?v=3","gravatar_id":"","url":"https://api.github.com/users/Floens","html_url":"https://github.com/Floens","followers_url":"https://api.github.com/users/Floens/followers","following_url":"https://api.github.com/users/Floens/following{/other_user}","gists_url":"https://api.github.com/users/Floens/gists{/gist_id}","starred_url":"https://api.github.com/users/Floens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Floens/subscriptions","organizations_url":"https://api.github.com/users/Floens/orgs","repos_url":"https://api.github.com/users/Floens/repos","events_url":"https://api.github.com/users/Floens/events{/privacy}","received_events_url":"https://api.github.com/users/Floens/received_events","type":"User","site_admin":false},"repo":{"id":18559877,"name":"Clover","full_name":"Floens/Clover","owner":{"login":"Floens","id":1012578,"avatar_url":"https://avatars.githubusercontent.com/u/1012578?v=3","gravatar_id":"","url":"https://api.github.com/users/Floens","html_url":"https://github.com/Floens","followers_url":"https://api.github.com/users/Floens/followers","following_url":"https://api.github.com/users/Floens/following{/other_user}","gists_url":"https://api.github.com/users/Floens/gists{/gist_id}","starred_url":"https://api.github.com/users/Floens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Floens/subscriptions","organizations_url":"https://api.github.com/users/Floens/orgs","repos_url":"https://api.github.com/users/Floens/repos","events_url":"https://api.github.com/users/Floens/events{/privacy}","received_events_url":"https://api.github.com/users/Floens/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Floens/Clover","description":"Clover - 4chan browser for Android","fork":false,"url":"https://api.github.com/repos/Floens/Clover","forks_url":"https://api.github.com/repos/Floens/Clover/forks","keys_url":"https://api.github.com/repos/Floens/Clover/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Floens/Clover/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Floens/Clover/teams","hooks_url":"https://api.github.com/repos/Floens/Clover/hooks","issue_events_url":"https://api.github.com/repos/Floens/Clover/issues/events{/number}","events_url":"https://api.github.com/repos/Floens/Clover/events","assignees_url":"https://api.github.com/repos/Floens/Clover/assignees{/user}","branches_url":"https://api.github.com/repos/Floens/Clover/branches{/branch}","tags_url":"https://api.github.com/repos/Floens/Clover/tags","blobs_url":"https://api.github.com/repos/Floens/Clover/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Floens/Clover/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Floens/Clover/git/refs{/sha}","trees_url":"https://api.github.com/repos/Floens/Clover/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Floens/Clover/statuses/{sha}","languages_url":"https://api.github.com/repos/Floens/Clover/languages","stargazers_url":"https://api.github.com/repos/Floens/Clover/stargazers","contributors_url":"https://api.github.com/repos/Floens/Clover/contributors","subscribers_url":"https://api.github.com/repos/Floens/Clover/subscribers","subscription_url":"https://api.github.com/repos/Floens/Clover/subscription","commits_url":"https://api.github.com/repos/Floens/Clover/commits{/sha}","git_commits_url":"https://api.github.com/repos/Floens/Clover/git/commits{/sha}","comments_url":"https://api.github.com/repos/Floens/Clover/comments{/number}","issue_comment_url":"https://api.github.com/repos/Floens/Clover/issues/comments{/number}","contents_url":"https://api.github.com/repos/Floens/Clover/contents/{+path}","compare_url":"https://api.github.com/repos/Floens/Clover/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Floens/Clover/merges","archive_url":"https://api.github.com/repos/Floens/Clover/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Floens/Clover/downloads","issues_url":"https://api.github.com/repos/Floens/Clover/issues{/number}","pulls_url":"https://api.github.com/repos/Floens/Clover/pulls{/number}","milestones_url":"https://api.github.com/repos/Floens/Clover/milestones{/number}","notifications_url":"https://api.github.com/repos/Floens/Clover/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Floens/Clover/labels{/name}","releases_url":"https://api.github.com/repos/Floens/Clover/releases{/id}","deployments_url":"https://api.github.com/repos/Floens/Clover/deployments","created_at":"2014-04-08T13:49:24Z","updated_at":"2016-09-09T10:12:45Z","pushed_at":"2016-09-11T14:28:25Z","git_url":"git://github.com/Floens/Clover.git","ssh_url":"git@github.com:Floens/Clover.git","clone_url":"https://github.com/Floens/Clover.git","svn_url":"https://github.com/Floens/Clover","homepage":"http://floens.github.io/Clover/","size":44031,"stargazers_count":235,"watchers_count":235,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":128,"mirror_url":null,"open_issues_count":39,"forks":128,"open_issues":39,"watchers":235,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Floens/Clover/pulls/229"},"html":{"href":"https://github.com/Floens/Clover/pull/229"},"issue":{"href":"https://api.github.com/repos/Floens/Clover/issues/229"},"comments":{"href":"https://api.github.com/repos/Floens/Clover/issues/229/comments"},"review_comments":{"href":"https://api.github.com/repos/Floens/Clover/pulls/229/comments"},"review_comment":{"href":"https://api.github.com/repos/Floens/Clover/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Floens/Clover/pulls/229/commits"},"statuses":{"href":"https://api.github.com/repos/Floens/Clover/statuses/6e19108e5686f689e0eb61d7650fff3482dbf9b5"}}}}
{"actor":{"display_login":"Floens"}}