{"action":"created","issue":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4872","labels_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4872/labels{/name}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4872/comments","events_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4872/events","html_url":"https://github.com/HabitRPG/habitrpg/issues/4872","id":62522659,"number":4872,"title":"blank messages can be sent through the Private Message (PM) system","user":{"login":"Alys","id":1495809,"avatar_url":"https://avatars.githubusercontent.com/u/1495809?v=3","gravatar_id":"","url":"https://api.github.com/users/Alys","html_url":"https://github.com/Alys","followers_url":"https://api.github.com/users/Alys/followers","following_url":"https://api.github.com/users/Alys/following{/other_user}","gists_url":"https://api.github.com/users/Alys/gists{/gist_id}","starred_url":"https://api.github.com/users/Alys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alys/subscriptions","organizations_url":"https://api.github.com/users/Alys/orgs","repos_url":"https://api.github.com/users/Alys/repos","events_url":"https://api.github.com/users/Alys/events{/privacy}","received_events_url":"https://api.github.com/users/Alys/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HabitRPG/habitrpg/labels/priority%20-%20minor","name":"priority - minor","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-17T21:29:11Z","updated_at":"2015-03-17T22:34:39Z","closed_at":null,"body":"The private message system should prevent a message being sent if nothing has been typed. It seems that players will accidentally click the message icon (possibly instead of the like button) and then accidentally click send instead of cancel. \r\n\r\nClicking send on an empty message should close the message window without sending anything.\r\n\r\nNote that this change should not affect gifting of gems - it should still be possible to send gems with no message.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9674954-blank-messages-can-be-sent-through-the-private-message-pm-system?utm_campaign=plugin&utm_content=tracker%2F68393&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F68393&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/comments/82626866","html_url":"https://github.com/HabitRPG/habitrpg/issues/4872#issuecomment-82626866","issue_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/4872","id":82626866,"user":{"login":"Horacious","id":11324453,"avatar_url":"https://avatars.githubusercontent.com/u/11324453?v=3","gravatar_id":"","url":"https://api.github.com/users/Horacious","html_url":"https://github.com/Horacious","followers_url":"https://api.github.com/users/Horacious/followers","following_url":"https://api.github.com/users/Horacious/following{/other_user}","gists_url":"https://api.github.com/users/Horacious/gists{/gist_id}","starred_url":"https://api.github.com/users/Horacious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Horacious/subscriptions","organizations_url":"https://api.github.com/users/Horacious/orgs","repos_url":"https://api.github.com/users/Horacious/repos","events_url":"https://api.github.com/users/Horacious/events{/privacy}","received_events_url":"https://api.github.com/users/Horacious/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T22:34:39Z","updated_at":"2015-03-17T22:34:39Z","body":"In a similar vein, the API also allows sending empty messages to group. Should this be in the same issue? I understand they're not really related in the code, but the fixes are likely to be similar."}}