{"action":"created","comment":{"url":"https://api.github.com/repos/thredded/thredded/pulls/comments/71530575","id":71530575,"diff_hunk":"@@ -66,6 +66,12 @@ def update\n       end\n     end\n \n+    def mark_all_read\n+      MarkAllRead.run(Thredded::PrivateTopic, thredded_current_user) if signed_in?","path":"app/controllers/thredded/private_topics_controller.rb","position":5,"original_position":5,"commit_id":"9b6af01636339a5b45faed2e773852e08b9f5be4","original_commit_id":"9b6af01636339a5b45faed2e773852e08b9f5be4","user":{"login":"jayroh","id":28194,"avatar_url":"https://avatars.githubusercontent.com/u/28194?v=3","gravatar_id":"","url":"https://api.github.com/users/jayroh","html_url":"https://github.com/jayroh","followers_url":"https://api.github.com/users/jayroh/followers","following_url":"https://api.github.com/users/jayroh/following{/other_user}","gists_url":"https://api.github.com/users/jayroh/gists{/gist_id}","starred_url":"https://api.github.com/users/jayroh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayroh/subscriptions","organizations_url":"https://api.github.com/users/jayroh/orgs","repos_url":"https://api.github.com/users/jayroh/repos","events_url":"https://api.github.com/users/jayroh/events{/privacy}","received_events_url":"https://api.github.com/users/jayroh/received_events","type":"User","site_admin":false},"body":"I don't think we'd need to inject the `Thredded::PrivateTopic` class here because there aren't plans to run this against regular topics (I don't think?). What do you think? Worth keeping around for normal topics? Since we don't keep a long running count shown to users for regular topics it's not as desirable as having it for the private topics.","created_at":"2016-07-20T14:06:03Z","updated_at":"2016-07-20T14:06:03Z","html_url":"https://github.com/thredded/thredded/pull/343#discussion_r71530575","pull_request_url":"https://api.github.com/repos/thredded/thredded/pulls/343","_links":{"self":{"href":"https://api.github.com/repos/thredded/thredded/pulls/comments/71530575"},"html":{"href":"https://github.com/thredded/thredded/pull/343#discussion_r71530575"},"pull_request":{"href":"https://api.github.com/repos/thredded/thredded/pulls/343"}}},"pull_request":{"url":"https://api.github.com/repos/thredded/thredded/pulls/343","id":78073234,"html_url":"https://github.com/thredded/thredded/pull/343","diff_url":"https://github.com/thredded/thredded/pull/343.diff","patch_url":"https://github.com/thredded/thredded/pull/343.patch","issue_url":"https://api.github.com/repos/thredded/thredded/issues/343","number":343,"state":"open","locked":false,"title":"Mark privates as read","user":{"login":"TheDudeWithTheThing","id":410798,"avatar_url":"https://avatars.githubusercontent.com/u/410798?v=3","gravatar_id":"","url":"https://api.github.com/users/TheDudeWithTheThing","html_url":"https://github.com/TheDudeWithTheThing","followers_url":"https://api.github.com/users/TheDudeWithTheThing/followers","following_url":"https://api.github.com/users/TheDudeWithTheThing/following{/other_user}","gists_url":"https://api.github.com/users/TheDudeWithTheThing/gists{/gist_id}","starred_url":"https://api.github.com/users/TheDudeWithTheThing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheDudeWithTheThing/subscriptions","organizations_url":"https://api.github.com/users/TheDudeWithTheThing/orgs","repos_url":"https://api.github.com/users/TheDudeWithTheThing/repos","events_url":"https://api.github.com/users/TheDudeWithTheThing/events{/privacy}","received_events_url":"https://api.github.com/users/TheDudeWithTheThing/received_events","type":"User","site_admin":false},"body":"#260 \r\n\r\nI just threw the link in, not sure where it would best fit\r\n\r\n<img width=\"854\" alt=\"private_messages___thredded_demo\" src=\"https://cloud.githubusercontent.com/assets/410798/16971571/f8478c2e-4df2-11e6-9cb8-988349c41f80.png\">\r\n","created_at":"2016-07-20T00:55:11Z","updated_at":"2016-07-20T14:06:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22fe09e06df2f1f9b9ad871e7c7ab3ccba779b30","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/thredded/thredded/pulls/343/commits","review_comments_url":"https://api.github.com/repos/thredded/thredded/pulls/343/comments","review_comment_url":"https://api.github.com/repos/thredded/thredded/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thredded/thredded/issues/343/comments","statuses_url":"https://api.github.com/repos/thredded/thredded/statuses/9b6af01636339a5b45faed2e773852e08b9f5be4","head":{"label":"thredded:mark-privates-as-read","ref":"mark-privates-as-read","sha":"9b6af01636339a5b45faed2e773852e08b9f5be4","user":{"login":"thredded","id":14218084,"avatar_url":"https://avatars.githubusercontent.com/u/14218084?v=3","gravatar_id":"","url":"https://api.github.com/users/thredded","html_url":"https://github.com/thredded","followers_url":"https://api.github.com/users/thredded/followers","following_url":"https://api.github.com/users/thredded/following{/other_user}","gists_url":"https://api.github.com/users/thredded/gists{/gist_id}","starred_url":"https://api.github.com/users/thredded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thredded/subscriptions","organizations_url":"https://api.github.com/users/thredded/orgs","repos_url":"https://api.github.com/users/thredded/repos","events_url":"https://api.github.com/users/thredded/events{/privacy}","received_events_url":"https://api.github.com/users/thredded/received_events","type":"Organization","site_admin":false},"repo":{"id":9949492,"name":"thredded","full_name":"thredded/thredded","owner":{"login":"thredded","id":14218084,"avatar_url":"https://avatars.githubusercontent.com/u/14218084?v=3","gravatar_id":"","url":"https://api.github.com/users/thredded","html_url":"https://github.com/thredded","followers_url":"https://api.github.com/users/thredded/followers","following_url":"https://api.github.com/users/thredded/following{/other_user}","gists_url":"https://api.github.com/users/thredded/gists{/gist_id}","starred_url":"https://api.github.com/users/thredded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thredded/subscriptions","organizations_url":"https://api.github.com/users/thredded/orgs","repos_url":"https://api.github.com/users/thredded/repos","events_url":"https://api.github.com/users/thredded/events{/privacy}","received_events_url":"https://api.github.com/users/thredded/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thredded/thredded","description":"The best Rails forums engine ever.","fork":false,"url":"https://api.github.com/repos/thredded/thredded","forks_url":"https://api.github.com/repos/thredded/thredded/forks","keys_url":"https://api.github.com/repos/thredded/thredded/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thredded/thredded/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thredded/thredded/teams","hooks_url":"https://api.github.com/repos/thredded/thredded/hooks","issue_events_url":"https://api.github.com/repos/thredded/thredded/issues/events{/number}","events_url":"https://api.github.com/repos/thredded/thredded/events","assignees_url":"https://api.github.com/repos/thredded/thredded/assignees{/user}","branches_url":"https://api.github.com/repos/thredded/thredded/branches{/branch}","tags_url":"https://api.github.com/repos/thredded/thredded/tags","blobs_url":"https://api.github.com/repos/thredded/thredded/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thredded/thredded/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thredded/thredded/git/refs{/sha}","trees_url":"https://api.github.com/repos/thredded/thredded/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thredded/thredded/statuses/{sha}","languages_url":"https://api.github.com/repos/thredded/thredded/languages","stargazers_url":"https://api.github.com/repos/thredded/thredded/stargazers","contributors_url":"https://api.github.com/repos/thredded/thredded/contributors","subscribers_url":"https://api.github.com/repos/thredded/thredded/subscribers","subscription_url":"https://api.github.com/repos/thredded/thredded/subscription","commits_url":"https://api.github.com/repos/thredded/thredded/commits{/sha}","git_commits_url":"https://api.github.com/repos/thredded/thredded/git/commits{/sha}","comments_url":"https://api.github.com/repos/thredded/thredded/comments{/number}","issue_comment_url":"https://api.github.com/repos/thredded/thredded/issues/comments{/number}","contents_url":"https://api.github.com/repos/thredded/thredded/contents/{+path}","compare_url":"https://api.github.com/repos/thredded/thredded/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thredded/thredded/merges","archive_url":"https://api.github.com/repos/thredded/thredded/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thredded/thredded/downloads","issues_url":"https://api.github.com/repos/thredded/thredded/issues{/number}","pulls_url":"https://api.github.com/repos/thredded/thredded/pulls{/number}","milestones_url":"https://api.github.com/repos/thredded/thredded/milestones{/number}","notifications_url":"https://api.github.com/repos/thredded/thredded/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thredded/thredded/labels{/name}","releases_url":"https://api.github.com/repos/thredded/thredded/releases{/id}","deployments_url":"https://api.github.com/repos/thredded/thredded/deployments","created_at":"2013-05-09T01:17:41Z","updated_at":"2016-07-20T07:36:50Z","pushed_at":"2016-07-20T01:24:29Z","git_url":"git://github.com/thredded/thredded.git","ssh_url":"git@github.com:thredded/thredded.git","clone_url":"https://github.com/thredded/thredded.git","svn_url":"https://github.com/thredded/thredded","homepage":"https://thredded.org","size":2183,"stargazers_count":433,"watchers_count":433,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":39,"forks":53,"open_issues":39,"watchers":433,"default_branch":"master"}},"base":{"label":"thredded:master","ref":"master","sha":"0c6506b86561c8f3706f2c2e549744b3d8f2a466","user":{"login":"thredded","id":14218084,"avatar_url":"https://avatars.githubusercontent.com/u/14218084?v=3","gravatar_id":"","url":"https://api.github.com/users/thredded","html_url":"https://github.com/thredded","followers_url":"https://api.github.com/users/thredded/followers","following_url":"https://api.github.com/users/thredded/following{/other_user}","gists_url":"https://api.github.com/users/thredded/gists{/gist_id}","starred_url":"https://api.github.com/users/thredded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thredded/subscriptions","organizations_url":"https://api.github.com/users/thredded/orgs","repos_url":"https://api.github.com/users/thredded/repos","events_url":"https://api.github.com/users/thredded/events{/privacy}","received_events_url":"https://api.github.com/users/thredded/received_events","type":"Organization","site_admin":false},"repo":{"id":9949492,"name":"thredded","full_name":"thredded/thredded","owner":{"login":"thredded","id":14218084,"avatar_url":"https://avatars.githubusercontent.com/u/14218084?v=3","gravatar_id":"","url":"https://api.github.com/users/thredded","html_url":"https://github.com/thredded","followers_url":"https://api.github.com/users/thredded/followers","following_url":"https://api.github.com/users/thredded/following{/other_user}","gists_url":"https://api.github.com/users/thredded/gists{/gist_id}","starred_url":"https://api.github.com/users/thredded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thredded/subscriptions","organizations_url":"https://api.github.com/users/thredded/orgs","repos_url":"https://api.github.com/users/thredded/repos","events_url":"https://api.github.com/users/thredded/events{/privacy}","received_events_url":"https://api.github.com/users/thredded/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thredded/thredded","description":"The best Rails forums engine ever.","fork":false,"url":"https://api.github.com/repos/thredded/thredded","forks_url":"https://api.github.com/repos/thredded/thredded/forks","keys_url":"https://api.github.com/repos/thredded/thredded/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thredded/thredded/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thredded/thredded/teams","hooks_url":"https://api.github.com/repos/thredded/thredded/hooks","issue_events_url":"https://api.github.com/repos/thredded/thredded/issues/events{/number}","events_url":"https://api.github.com/repos/thredded/thredded/events","assignees_url":"https://api.github.com/repos/thredded/thredded/assignees{/user}","branches_url":"https://api.github.com/repos/thredded/thredded/branches{/branch}","tags_url":"https://api.github.com/repos/thredded/thredded/tags","blobs_url":"https://api.github.com/repos/thredded/thredded/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thredded/thredded/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thredded/thredded/git/refs{/sha}","trees_url":"https://api.github.com/repos/thredded/thredded/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thredded/thredded/statuses/{sha}","languages_url":"https://api.github.com/repos/thredded/thredded/languages","stargazers_url":"https://api.github.com/repos/thredded/thredded/stargazers","contributors_url":"https://api.github.com/repos/thredded/thredded/contributors","subscribers_url":"https://api.github.com/repos/thredded/thredded/subscribers","subscription_url":"https://api.github.com/repos/thredded/thredded/subscription","commits_url":"https://api.github.com/repos/thredded/thredded/commits{/sha}","git_commits_url":"https://api.github.com/repos/thredded/thredded/git/commits{/sha}","comments_url":"https://api.github.com/repos/thredded/thredded/comments{/number}","issue_comment_url":"https://api.github.com/repos/thredded/thredded/issues/comments{/number}","contents_url":"https://api.github.com/repos/thredded/thredded/contents/{+path}","compare_url":"https://api.github.com/repos/thredded/thredded/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thredded/thredded/merges","archive_url":"https://api.github.com/repos/thredded/thredded/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thredded/thredded/downloads","issues_url":"https://api.github.com/repos/thredded/thredded/issues{/number}","pulls_url":"https://api.github.com/repos/thredded/thredded/pulls{/number}","milestones_url":"https://api.github.com/repos/thredded/thredded/milestones{/number}","notifications_url":"https://api.github.com/repos/thredded/thredded/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thredded/thredded/labels{/name}","releases_url":"https://api.github.com/repos/thredded/thredded/releases{/id}","deployments_url":"https://api.github.com/repos/thredded/thredded/deployments","created_at":"2013-05-09T01:17:41Z","updated_at":"2016-07-20T07:36:50Z","pushed_at":"2016-07-20T01:24:29Z","git_url":"git://github.com/thredded/thredded.git","ssh_url":"git@github.com:thredded/thredded.git","clone_url":"https://github.com/thredded/thredded.git","svn_url":"https://github.com/thredded/thredded","homepage":"https://thredded.org","size":2183,"stargazers_count":433,"watchers_count":433,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":39,"forks":53,"open_issues":39,"watchers":433,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thredded/thredded/pulls/343"},"html":{"href":"https://github.com/thredded/thredded/pull/343"},"issue":{"href":"https://api.github.com/repos/thredded/thredded/issues/343"},"comments":{"href":"https://api.github.com/repos/thredded/thredded/issues/343/comments"},"review_comments":{"href":"https://api.github.com/repos/thredded/thredded/pulls/343/comments"},"review_comment":{"href":"https://api.github.com/repos/thredded/thredded/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thredded/thredded/pulls/343/commits"},"statuses":{"href":"https://api.github.com/repos/thredded/thredded/statuses/9b6af01636339a5b45faed2e773852e08b9f5be4"}}}}
{"actor":{"display_login":"jayroh"}}