{"action":"created","issue":{"url":"https://api.github.com/repos/discourse/discourse/issues/6143","repository_url":"https://api.github.com/repos/discourse/discourse","labels_url":"https://api.github.com/repos/discourse/discourse/issues/6143/labels{/name}","comments_url":"https://api.github.com/repos/discourse/discourse/issues/6143/comments","events_url":"https://api.github.com/repos/discourse/discourse/issues/6143/events","html_url":"https://github.com/discourse/discourse/pull/6143","id":343645529,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMjI4Nzk0","number":6143,"title":"FEATURE: Drafts view in user profile","user":{"login":"pmusaraj","id":368961,"node_id":"MDQ6VXNlcjM2ODk2MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/368961?v=4","gravatar_id":"","url":"https://api.github.com/users/pmusaraj","html_url":"https://github.com/pmusaraj","followers_url":"https://api.github.com/users/pmusaraj/followers","following_url":"https://api.github.com/users/pmusaraj/following{/other_user}","gists_url":"https://api.github.com/users/pmusaraj/gists{/gist_id}","starred_url":"https://api.github.com/users/pmusaraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmusaraj/subscriptions","organizations_url":"https://api.github.com/users/pmusaraj/orgs","repos_url":"https://api.github.com/users/pmusaraj/repos","events_url":"https://api.github.com/users/pmusaraj/events{/privacy}","received_events_url":"https://api.github.com/users/pmusaraj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-23T13:59:31Z","updated_at":"2018-07-23T14:06:48Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/discourse/discourse/pulls/6143","html_url":"https://github.com/discourse/discourse/pull/6143","diff_url":"https://github.com/discourse/discourse/pull/6143.diff","patch_url":"https://github.com/discourse/discourse/pull/6143.patch"},"body":"Initial discussion: https://meta.discourse.org/t/drafts-view-in-profile/13720 \r\n\r\n## Visible/functional changes:\r\n\r\n- New \"Drafts\" tab available under Activity in the User Profile. \r\n- User can resume a draft, remove a draft.\r\n- All of the user's drafts (topics, replies, PMs) are included in the list (and identified).\r\n\r\n## Screenshots\r\n\r\n![drafts-screenshot](https://user-images.githubusercontent.com/368961/43080147-08978014-8e5d-11e8-96ce-5ee4efc5a060.jpg)\r\n\r\n## Notes/changes\r\n\r\n- I couldn't use the `expand-post` component in the draft list to expand/collapse the excerpts, since `expand-post` does an AJAX request to the post to get the full content, and drafts aren't yet posts. I don't think the drafts list warrants its own expand/collapse component, so the drafts can't be expanded/collapsed. \r\n- admins can only see a user's draft list. \r\n- previously, if a user had a draft PM, the composer would open as soon as she visited a `/u/username` route. In this PR, that behaviour is restricted to users visiting `/u/username/messages`"},"comment":{"url":"https://api.github.com/repos/discourse/discourse/issues/comments/407070072","html_url":"https://github.com/discourse/discourse/pull/6143#issuecomment-407070072","issue_url":"https://api.github.com/repos/discourse/discourse/issues/6143","id":407070072,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzA3MDA3Mg==","user":{"login":"discoursebot","id":3698800,"node_id":"MDQ6VXNlcjM2OTg4MDA=","avatar_url":"https://avatars0.githubusercontent.com/u/3698800?v=4","gravatar_id":"","url":"https://api.github.com/users/discoursebot","html_url":"https://github.com/discoursebot","followers_url":"https://api.github.com/users/discoursebot/followers","following_url":"https://api.github.com/users/discoursebot/following{/other_user}","gists_url":"https://api.github.com/users/discoursebot/gists{/gist_id}","starred_url":"https://api.github.com/users/discoursebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discoursebot/subscriptions","organizations_url":"https://api.github.com/users/discoursebot/orgs","repos_url":"https://api.github.com/users/discoursebot/repos","events_url":"https://api.github.com/users/discoursebot/events{/privacy}","received_events_url":"https://api.github.com/users/discoursebot/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T14:06:48Z","updated_at":"2018-07-23T14:06:48Z","author_association":"NONE","body":"This pull request has been mentioned on **Discourse Meta**. There might be relevant details there:\n\nhttps://meta.discourse.org/t/drafts-view-in-profile/13720/8\n"}}
{"actor":{"display_login":"discoursebot"}}