{"action":"created","issue":{"url":"https://api.github.com/repos/mitodl/open-discussions/issues/234","repository_url":"https://api.github.com/repos/mitodl/open-discussions","labels_url":"https://api.github.com/repos/mitodl/open-discussions/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/mitodl/open-discussions/issues/234/comments","events_url":"https://api.github.com/repos/mitodl/open-discussions/issues/234/events","html_url":"https://github.com/mitodl/open-discussions/issues/234","id":262151841,"number":234,"title":"Moderator can delete posts","user":{"login":"roberthouse54","id":20047260,"avatar_url":"https://avatars2.githubusercontent.com/u/20047260?v=4","gravatar_id":"","url":"https://api.github.com/users/roberthouse54","html_url":"https://github.com/roberthouse54","followers_url":"https://api.github.com/users/roberthouse54/followers","following_url":"https://api.github.com/users/roberthouse54/following{/other_user}","gists_url":"https://api.github.com/users/roberthouse54/gists{/gist_id}","starred_url":"https://api.github.com/users/roberthouse54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roberthouse54/subscriptions","organizations_url":"https://api.github.com/users/roberthouse54/orgs","repos_url":"https://api.github.com/users/roberthouse54/repos","events_url":"https://api.github.com/users/roberthouse54/events{/privacy}","received_events_url":"https://api.github.com/users/roberthouse54/received_events","type":"User","site_admin":false},"labels":[{"id":706415472,"url":"https://api.github.com/repos/mitodl/open-discussions/labels/UX","name":"UX","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-02T16:54:44Z","updated_at":"2017-10-06T17:03:36Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Design is TBD. API issue is #195\r\n\r\nPresumably if a post is deleted we will delete the post and all the comments attached to the post."},"comment":{"url":"https://api.github.com/repos/mitodl/open-discussions/issues/comments/334813403","html_url":"https://github.com/mitodl/open-discussions/issues/234#issuecomment-334813403","issue_url":"https://api.github.com/repos/mitodl/open-discussions/issues/234","id":334813403,"user":{"login":"roberthouse54","id":20047260,"avatar_url":"https://avatars2.githubusercontent.com/u/20047260?v=4","gravatar_id":"","url":"https://api.github.com/users/roberthouse54","html_url":"https://github.com/roberthouse54","followers_url":"https://api.github.com/users/roberthouse54/followers","following_url":"https://api.github.com/users/roberthouse54/following{/other_user}","gists_url":"https://api.github.com/users/roberthouse54/gists{/gist_id}","starred_url":"https://api.github.com/users/roberthouse54/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roberthouse54/subscriptions","organizations_url":"https://api.github.com/users/roberthouse54/orgs","repos_url":"https://api.github.com/users/roberthouse54/repos","events_url":"https://api.github.com/users/roberthouse54/events{/privacy}","received_events_url":"https://api.github.com/users/roberthouse54/received_events","type":"User","site_admin":false},"created_at":"2017-10-06T17:03:36Z","updated_at":"2017-10-06T17:03:36Z","author_association":"CONTRIBUTOR","body":"We will show a delete link under a post. We will only show this under the user's own posts. Moderators will see a delete link under all posts.\r\n\r\n![image](https://user-images.githubusercontent.com/20047260/31289321-5494b7bc-aa96-11e7-8bee-ebbec5641644.png)\r\n\r\nWe will show a delete confirmation modal:\r\n\r\n![image](https://user-images.githubusercontent.com/20047260/31289335-5f9f039c-aa96-11e7-8716-5fd403a2ea73.png)\r\n\r\nAfter the post has been deleted, we will delete the content and the title of the post, and show the text \"[comment deleted by author]\" or \"[comment deleted by moderator]\" in the post title. The user name and avatar will no longer be shown, nor will the upvoting arrows or the score. The post will no longer be displayed in the channel page or on the home page. But if a user has a link to the post, they will be able to link to the page and see the comments tree, but the post itself will be displayed as shown.\r\n\r\n![image](https://user-images.githubusercontent.com/20047260/31289420-b0fc867e-aa96-11e7-8d56-bdff2be43ec0.png)\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"roberthouse54"}}