{"action":"created","issue":{"url":"https://api.github.com/repos/ilosuna/mylittleforum/issues/128","repository_url":"https://api.github.com/repos/ilosuna/mylittleforum","labels_url":"https://api.github.com/repos/ilosuna/mylittleforum/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/ilosuna/mylittleforum/issues/128/comments","events_url":"https://api.github.com/repos/ilosuna/mylittleforum/issues/128/events","html_url":"https://github.com/ilosuna/mylittleforum/issues/128","id":193353725,"number":128,"title":"Entries could be marked as new and as read","user":{"login":"auge8472","id":1734660,"avatar_url":"https://avatars.githubusercontent.com/u/1734660?v=3","gravatar_id":"","url":"https://api.github.com/users/auge8472","html_url":"https://github.com/auge8472","followers_url":"https://api.github.com/users/auge8472/followers","following_url":"https://api.github.com/users/auge8472/following{/other_user}","gists_url":"https://api.github.com/users/auge8472/gists{/gist_id}","starred_url":"https://api.github.com/users/auge8472/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auge8472/subscriptions","organizations_url":"https://api.github.com/users/auge8472/orgs","repos_url":"https://api.github.com/users/auge8472/repos","events_url":"https://api.github.com/users/auge8472/events{/privacy}","received_events_url":"https://api.github.com/users/auge8472/received_events","type":"User","site_admin":false},"labels":[{"id":385268904,"url":"https://api.github.com/repos/ilosuna/mylittleforum/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ilosuna/mylittleforum/milestones/2","html_url":"https://github.com/ilosuna/mylittleforum/milestone/2","labels_url":"https://api.github.com/repos/ilosuna/mylittleforum/milestones/2/labels","id":2040995,"number":2,"title":"v2.4","description":"","creator":{"login":"auge8472","id":1734660,"avatar_url":"https://avatars.githubusercontent.com/u/1734660?v=3","gravatar_id":"","url":"https://api.github.com/users/auge8472","html_url":"https://github.com/auge8472","followers_url":"https://api.github.com/users/auge8472/followers","following_url":"https://api.github.com/users/auge8472/following{/other_user}","gists_url":"https://api.github.com/users/auge8472/gists{/gist_id}","starred_url":"https://api.github.com/users/auge8472/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auge8472/subscriptions","organizations_url":"https://api.github.com/users/auge8472/orgs","repos_url":"https://api.github.com/users/auge8472/repos","events_url":"https://api.github.com/users/auge8472/events{/privacy}","received_events_url":"https://api.github.com/users/auge8472/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":43,"state":"open","created_at":"2016-09-30T21:32:17Z","updated_at":"2016-12-05T17:13:31Z","due_on":"2016-12-15T00:00:00Z","closed_at":null},"comments":4,"created_at":"2016-12-04T14:28:49Z","updated_at":"2016-12-10T09:37:14Z","closed_at":null,"body":"With the new behaviour of the read-marking (see #45 ff.) it is possible to mark an entry as read while the entry is also marked as new. There are two if-blocks in the templates, one for the new-marking and another one for the read-marking. It should be an if-else-block, that marks an entry as read if the user is logged in and the entry **is** read and otherwise mark the entry as new, if the entry is newer than the last visit."},"comment":{"url":"https://api.github.com/repos/ilosuna/mylittleforum/issues/comments/266192671","html_url":"https://github.com/ilosuna/mylittleforum/issues/128#issuecomment-266192671","issue_url":"https://api.github.com/repos/ilosuna/mylittleforum/issues/128","id":266192671,"user":{"login":"derletztekick","id":3595603,"avatar_url":"https://avatars.githubusercontent.com/u/3595603?v=3","gravatar_id":"","url":"https://api.github.com/users/derletztekick","html_url":"https://github.com/derletztekick","followers_url":"https://api.github.com/users/derletztekick/followers","following_url":"https://api.github.com/users/derletztekick/following{/other_user}","gists_url":"https://api.github.com/users/derletztekick/gists{/gist_id}","starred_url":"https://api.github.com/users/derletztekick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derletztekick/subscriptions","organizations_url":"https://api.github.com/users/derletztekick/orgs","repos_url":"https://api.github.com/users/derletztekick/repos","events_url":"https://api.github.com/users/derletztekick/events{/privacy}","received_events_url":"https://api.github.com/users/derletztekick/received_events","type":"User","site_admin":false},"created_at":"2016-12-10T09:37:14Z","updated_at":"2016-12-10T09:37:14Z","body":"Isn't it a possible solution to modify your code part:\r\n\r\n```\r\n     if ($data['req_user'] !== NULL and is_numeric($data['req_user'])) {\r\n       $data['is_read'] = true;\r\n     } else {\r\n       $data['is_read'] = false;\r\n     }\r\n```\r\n\r\nto\r\n\r\n```\r\n     if ($data['req_user'] !== NULL and is_numeric($data['req_user'])) {\r\n       $data['is_read'] = true;\r\n       $data['new'] = false;\r\n     } else {\r\n       $data['is_read'] = false;\r\n     }\r\n```\r\n\r\n?"}}
{"actor":{"display_login":"derletztekick"}}