{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/1113","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/1113/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/1113/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/1113/events","html_url":"https://github.com/Automattic/wp-calypso/issues/1113","id":119745218,"number":1113,"title":"Editor: missing URL Parameter for pre-filling the post content","user":{"login":"designsimply","id":1119271,"avatar_url":"https://avatars0.githubusercontent.com/u/1119271?v=4","gravatar_id":"","url":"https://api.github.com/users/designsimply","html_url":"https://github.com/designsimply","followers_url":"https://api.github.com/users/designsimply/followers","following_url":"https://api.github.com/users/designsimply/following{/other_user}","gists_url":"https://api.github.com/users/designsimply/gists{/gist_id}","starred_url":"https://api.github.com/users/designsimply/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/designsimply/subscriptions","organizations_url":"https://api.github.com/users/designsimply/orgs","repos_url":"https://api.github.com/users/designsimply/repos","events_url":"https://api.github.com/users/designsimply/events{/privacy}","received_events_url":"https://api.github.com/users/designsimply/received_events","type":"User","site_admin":false},"labels":[{"id":285009995,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Editor","name":"Editor","color":"006b75","default":false},{"id":285010008,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Pri]%20Normal","name":"[Pri] Normal","color":"f9d0c4","default":false},{"id":285009975,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Bug","name":"[Type] Bug","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/14","html_url":"https://github.com/Automattic/wp-calypso/milestone/14","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/14/labels","id":1418769,"number":14,"title":"Editor: Next","description":"","creator":{"login":"hoverduck","id":7233112,"avatar_url":"https://avatars2.githubusercontent.com/u/7233112?v=4","gravatar_id":"","url":"https://api.github.com/users/hoverduck","html_url":"https://github.com/hoverduck","followers_url":"https://api.github.com/users/hoverduck/followers","following_url":"https://api.github.com/users/hoverduck/following{/other_user}","gists_url":"https://api.github.com/users/hoverduck/gists{/gist_id}","starred_url":"https://api.github.com/users/hoverduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoverduck/subscriptions","organizations_url":"https://api.github.com/users/hoverduck/orgs","repos_url":"https://api.github.com/users/hoverduck/repos","events_url":"https://api.github.com/users/hoverduck/events{/privacy}","received_events_url":"https://api.github.com/users/hoverduck/received_events","type":"User","site_admin":false},"open_issues":38,"closed_issues":112,"state":"open","created_at":"2015-11-18T21:12:02Z","updated_at":"2017-12-21T06:54:14Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-12-01T15:50:31Z","updated_at":"2017-12-21T06:54:14Z","closed_at":"2017-12-21T06:54:14Z","author_association":"CONTRIBUTOR","body":"Raised by @kjellr\n\nThe BBB editor used to allow a `?text=` url parameter to pre-fill the post content when composing a new post. In WP-Admin, the `?content=` url parameter does the same thing.\n\nWe used this for \"Respond in a new post\" button on [The Daily Post](https://dailypost.wordpress.com) to help users auto-insert a pingback URL into response posts, but doesn't seem to be an equivalent URL param in the editor anymore. It would be really helpful to add that functionality back in. \n\nThanks!\n\nNotes from @kriskarkoski \n\n> Here's an example:\n> \n> ```\n> https://wordpress.com/post/?text=In+response+to+The+Daily+Post%27s+writing+prompt%3A+%3Ca+href%3D%22https%3A%2F%2Fdailypost.wordpress.com%2Fprompts%2Fone-more-time%2F%22%3E%22One+More+Time.%22%3C%2Fa%3E\n> ```\n> \n> It would add the text/link back to the Daily Post within the new post content so the pingback would happen properly\n\nNotes from @nylen \n\n> Bob pointed out that as of 10860-gh-calypso-pre-oss [`pressThis` is the first controller for the `/post` route](https://github.com/Automattic/wp-calypso/blob/53bde8c/client/post-editor/index.js#L15), and if the editor is loaded with query parameters and no site then we [pick the primary site and send the user there](https://github.com/Automattic/wp-calypso/blob/5f5c917/client/post-editor/controller.js#L161-L171).  So the easiest fix for this issue is to rename `pressThis` -> `maybeChoosePrimarySite` or similar, then handle the new URL parameters there.\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/353272842","html_url":"https://github.com/Automattic/wp-calypso/issues/1113#issuecomment-353272842","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/1113","id":353272842,"user":{"login":"brbrr","id":5654161,"avatar_url":"https://avatars2.githubusercontent.com/u/5654161?v=4","gravatar_id":"","url":"https://api.github.com/users/brbrr","html_url":"https://github.com/brbrr","followers_url":"https://api.github.com/users/brbrr/followers","following_url":"https://api.github.com/users/brbrr/following{/other_user}","gists_url":"https://api.github.com/users/brbrr/gists{/gist_id}","starred_url":"https://api.github.com/users/brbrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brbrr/subscriptions","organizations_url":"https://api.github.com/users/brbrr/orgs","repos_url":"https://api.github.com/users/brbrr/repos","events_url":"https://api.github.com/users/brbrr/events{/privacy}","received_events_url":"https://api.github.com/users/brbrr/received_events","type":"User","site_admin":false},"created_at":"2017-12-21T06:54:14Z","updated_at":"2017-12-21T06:54:14Z","author_association":"CONTRIBUTOR","body":"Closing due to inactivity. If this is still needed - please re-open it. "}}
{"actor":{"display_login":"brbrr"}}