{"action":"created","issue":{"url":"https://api.github.com/repos/nitely/Spirit/issues/118","repository_url":"https://api.github.com/repos/nitely/Spirit","labels_url":"https://api.github.com/repos/nitely/Spirit/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/nitely/Spirit/issues/118/comments","events_url":"https://api.github.com/repos/nitely/Spirit/issues/118/events","html_url":"https://github.com/nitely/Spirit/pull/118","id":154934844,"number":118,"title":"Feature/anti double post","user":{"login":"nitely","id":1697267,"avatar_url":"https://avatars.githubusercontent.com/u/1697267?v=3","gravatar_id":"","url":"https://api.github.com/users/nitely","html_url":"https://github.com/nitely","followers_url":"https://api.github.com/users/nitely/followers","following_url":"https://api.github.com/users/nitely/following{/other_user}","gists_url":"https://api.github.com/users/nitely/gists{/gist_id}","starred_url":"https://api.github.com/users/nitely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitely/subscriptions","organizations_url":"https://api.github.com/users/nitely/orgs","repos_url":"https://api.github.com/users/nitely/repos","events_url":"https://api.github.com/users/nitely/events{/privacy}","received_events_url":"https://api.github.com/users/nitely/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-15T22:37:23Z","updated_at":"2016-05-15T22:51:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nitely/Spirit/pulls/118","html_url":"https://github.com/nitely/Spirit/pull/118","diff_url":"https://github.com/nitely/Spirit/pull/118.diff","patch_url":"https://github.com/nitely/Spirit/pull/118.patch"},"body":"* Prevent user from posting the same comment, topic or private topic twice in a round\r\n* There is a threshold time (`settings.ST_DOUBLE_POST_THRESHOLD_MINUTES`) the user has to past before double posting. This is so comments like *\"bump\"* or whatever, after some time are allowed.\r\n* It's possible to send the same comment to multiple topics and to send the same topic to multiple categories.\r\n* It's also possible to send the same message as the previous comment, assuming they are not from the same user.\r\n* The implementation builds a hash from the comment, currently it's server side. But there is a *[comment|topic]_hash* field that when populated/sent it'll avoid doing the hash calculation, so it can be done with JS and then appended to the form before POSTing. Since it gets saved into the user's model and it's only used for comparasions it does not matter someone sends something other than a hash.\r\n* The operation is atomic, meaning there is no way to bypass it by sending multiple post at exactly the same time."},"comment":{"url":"https://api.github.com/repos/nitely/Spirit/issues/comments/219316230","html_url":"https://github.com/nitely/Spirit/pull/118#issuecomment-219316230","issue_url":"https://api.github.com/repos/nitely/Spirit/issues/118","id":219316230,"user":{"login":"nitely","id":1697267,"avatar_url":"https://avatars.githubusercontent.com/u/1697267?v=3","gravatar_id":"","url":"https://api.github.com/users/nitely","html_url":"https://github.com/nitely","followers_url":"https://api.github.com/users/nitely/followers","following_url":"https://api.github.com/users/nitely/following{/other_user}","gists_url":"https://api.github.com/users/nitely/gists{/gist_id}","starred_url":"https://api.github.com/users/nitely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitely/subscriptions","organizations_url":"https://api.github.com/users/nitely/orgs","repos_url":"https://api.github.com/users/nitely/repos","events_url":"https://api.github.com/users/nitely/events{/privacy}","received_events_url":"https://api.github.com/users/nitely/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T22:51:47Z","updated_at":"2016-05-15T22:51:47Z","body":"@alesdotio can you review this?"}}