{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSCommentBundle/issues/450","labels_url":"https://api.github.com/repos/FriendsOfSymfony/FOSCommentBundle/issues/450/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfSymfony/FOSCommentBundle/issues/450/comments","events_url":"https://api.github.com/repos/FriendsOfSymfony/FOSCommentBundle/issues/450/events","html_url":"https://github.com/FriendsOfSymfony/FOSCommentBundle/issues/450","id":47907654,"number":450,"title":"Access properties of a comment after vote","user":{"login":"Don87","id":5156320,"avatar_url":"https://avatars.githubusercontent.com/u/5156320?v=3","gravatar_id":"","url":"https://api.github.com/users/Don87","html_url":"https://github.com/Don87","followers_url":"https://api.github.com/users/Don87/followers","following_url":"https://api.github.com/users/Don87/following{/other_user}","gists_url":"https://api.github.com/users/Don87/gists{/gist_id}","starred_url":"https://api.github.com/users/Don87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Don87/subscriptions","organizations_url":"https://api.github.com/users/Don87/orgs","repos_url":"https://api.github.com/users/Don87/repos","events_url":"https://api.github.com/users/Don87/events{/privacy}","received_events_url":"https://api.github.com/users/Don87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-06T00:18:10Z","updated_at":"2015-02-16T14:05:45Z","closed_at":null,"body":"Hi, I would like to notify a FOSuser when his/her comment has just been voted on. I plan to send a AJax request after a vote. I have read Step 13: Hooking into the JS code but have struggled to accomplish this.\r\n\r\n### fos_comment_vote_comment( data )\r\n\r\nTriggered when the the request about voting a comment succeeds.\r\n\r\n - data: data sent to the server with the request.\r\n\r\nI wish to access, in order of utmost importance, the id of the user who made comment, the vote value (up or down) and possibly the comment id. Any help is very much appreciated, thanks!"},"comment":{"url":"https://api.github.com/repos/FriendsOfSymfony/FOSCommentBundle/issues/comments/74512572","html_url":"https://github.com/FriendsOfSymfony/FOSCommentBundle/issues/450#issuecomment-74512572","issue_url":"https://api.github.com/repos/FriendsOfSymfony/FOSCommentBundle/issues/450","id":74512572,"user":{"login":"n1c01a5","id":1773356,"avatar_url":"https://avatars.githubusercontent.com/u/1773356?v=3","gravatar_id":"","url":"https://api.github.com/users/n1c01a5","html_url":"https://github.com/n1c01a5","followers_url":"https://api.github.com/users/n1c01a5/followers","following_url":"https://api.github.com/users/n1c01a5/following{/other_user}","gists_url":"https://api.github.com/users/n1c01a5/gists{/gist_id}","starred_url":"https://api.github.com/users/n1c01a5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n1c01a5/subscriptions","organizations_url":"https://api.github.com/users/n1c01a5/orgs","repos_url":"https://api.github.com/users/n1c01a5/repos","events_url":"https://api.github.com/users/n1c01a5/events{/privacy}","received_events_url":"https://api.github.com/users/n1c01a5/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T14:05:45Z","updated_at":"2015-02-16T14:05:45Z","body":"To access the id of the user, you can use the global variable {{ app.user }} or maybe {{ app.security.user }} in the view."}}