{"action":"created","issue":{"url":"https://api.github.com/repos/Riari/laravel-forum/issues/116","repository_url":"https://api.github.com/repos/Riari/laravel-forum","labels_url":"https://api.github.com/repos/Riari/laravel-forum/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/Riari/laravel-forum/issues/116/comments","events_url":"https://api.github.com/repos/Riari/laravel-forum/issues/116/events","html_url":"https://github.com/Riari/laravel-forum/issues/116","id":136044939,"number":116,"title":"Check if category contains unread posts","user":{"login":"mydnic","id":2733767,"avatar_url":"https://avatars.githubusercontent.com/u/2733767?v=3","gravatar_id":"","url":"https://api.github.com/users/mydnic","html_url":"https://github.com/mydnic","followers_url":"https://api.github.com/users/mydnic/followers","following_url":"https://api.github.com/users/mydnic/following{/other_user}","gists_url":"https://api.github.com/users/mydnic/gists{/gist_id}","starred_url":"https://api.github.com/users/mydnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mydnic/subscriptions","organizations_url":"https://api.github.com/users/mydnic/orgs","repos_url":"https://api.github.com/users/mydnic/repos","events_url":"https://api.github.com/users/mydnic/events{/privacy}","received_events_url":"https://api.github.com/users/mydnic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Riari/laravel-forum/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-24T12:19:45Z","updated_at":"2016-02-25T11:59:42Z","closed_at":null,"body":"Hello,\r\nI don't if this something you've planned to do, or not, but it would be very nice to be able to check if a category contains any unread posts.\r\nIt would allow to display a colored icon or something in front of the category that has one or more unread post.\r\n\r\nThis feature exists on almost every forum so I guess it's something a lot of people would be interested in ?\r\n\r\nI hope my explanations are understandable :)\r\n\r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/Riari/laravel-forum/issues/comments/188753701","html_url":"https://github.com/Riari/laravel-forum/issues/116#issuecomment-188753701","issue_url":"https://api.github.com/repos/Riari/laravel-forum/issues/116","id":188753701,"user":{"login":"mydnic","id":2733767,"avatar_url":"https://avatars.githubusercontent.com/u/2733767?v=3","gravatar_id":"","url":"https://api.github.com/users/mydnic","html_url":"https://github.com/mydnic","followers_url":"https://api.github.com/users/mydnic/followers","following_url":"https://api.github.com/users/mydnic/following{/other_user}","gists_url":"https://api.github.com/users/mydnic/gists{/gist_id}","starred_url":"https://api.github.com/users/mydnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mydnic/subscriptions","organizations_url":"https://api.github.com/users/mydnic/orgs","repos_url":"https://api.github.com/users/mydnic/repos","events_url":"https://api.github.com/users/mydnic/events{/privacy}","received_events_url":"https://api.github.com/users/mydnic/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T11:59:42Z","updated_at":"2016-02-25T11:59:42Z","body":"Yeah it's not related to notifications and category \"subscription\" (which I think is easily doable yourself in your app using Events).\r\n\r\nI guess that this unread check is doable in one query per category but I don't know how to handle sub level categories :/"}}