{"action":"created","issue":{"url":"https://api.github.com/repos/hypothesis/h/issues/2300","labels_url":"https://api.github.com/repos/hypothesis/h/issues/2300/labels{/name}","comments_url":"https://api.github.com/repos/hypothesis/h/issues/2300/comments","events_url":"https://api.github.com/repos/hypothesis/h/issues/2300/events","html_url":"https://github.com/hypothesis/h/pull/2300","id":86154831,"number":2300,"title":"Nipsa","user":{"login":"seanh","id":22498,"avatar_url":"https://avatars.githubusercontent.com/u/22498?v=3","gravatar_id":"","url":"https://api.github.com/users/seanh","html_url":"https://github.com/seanh","followers_url":"https://api.github.com/users/seanh/followers","following_url":"https://api.github.com/users/seanh/following{/other_user}","gists_url":"https://api.github.com/users/seanh/gists{/gist_id}","starred_url":"https://api.github.com/users/seanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanh/subscriptions","organizations_url":"https://api.github.com/users/seanh/orgs","repos_url":"https://api.github.com/users/seanh/repos","events_url":"https://api.github.com/users/seanh/events{/privacy}","received_events_url":"https://api.github.com/users/seanh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":35,"created_at":"2015-06-08T12:22:52Z","updated_at":"2015-07-21T14:14:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hypothesis/h/pulls/2300","html_url":"https://github.com/hypothesis/h/pull/2300","diff_url":"https://github.com/hypothesis/h/pull/2300.diff","patch_url":"https://github.com/hypothesis/h/pull/2300.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/hypothesis/h/issues/comments/123327685","html_url":"https://github.com/hypothesis/h/pull/2300#issuecomment-123327685","issue_url":"https://api.github.com/repos/hypothesis/h/issues/2300","id":123327685,"user":{"login":"tilgovi","id":20818,"avatar_url":"https://avatars.githubusercontent.com/u/20818?v=3","gravatar_id":"","url":"https://api.github.com/users/tilgovi","html_url":"https://github.com/tilgovi","followers_url":"https://api.github.com/users/tilgovi/followers","following_url":"https://api.github.com/users/tilgovi/following{/other_user}","gists_url":"https://api.github.com/users/tilgovi/gists{/gist_id}","starred_url":"https://api.github.com/users/tilgovi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilgovi/subscriptions","organizations_url":"https://api.github.com/users/tilgovi/orgs","repos_url":"https://api.github.com/users/tilgovi/repos","events_url":"https://api.github.com/users/tilgovi/events{/privacy}","received_events_url":"https://api.github.com/users/tilgovi/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T14:14:53Z","updated_at":"2015-07-21T14:14:53Z","body":"Sounds right. We definitely want to make a single annotation request.\n\nOn Tue, Jul 21, 2015, 07:03 Sean Hammond <notifications@github.com> wrote:\n\n> Ok, so live updates of annotations (nipsa'd or not) on individual\n> annotation pages does seem to be working if the user looking at the page is\n> the annotation creator himself (the only code I wrote to filter annotations\n> out of the websocket only filters them out if they're nipsa'd *and* not\n> created by the authorized user).\n>\n> But there's a bigger problem - individual annotation pages are broken if\n> the annotation is nipsa'd, and the authorized user is not the annotation\n> creator. This is because the page loads a template with no annotation and\n> then Angular makes an XHR to the *search* API searching for an annotation\n> by ID, and of course nipsa'd annotations are filtered out.\n>\n> I think the correct solution here is for the frontend to use the API\n> endpoint for retrieving a single annotation, since with the current\n> situation there's no (nice) way for the backend to detect these requests\n> and treat them differently from other search requests.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/hypothesis/h/pull/2300#issuecomment-123320549>.\n>\n"}}