{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/activitypub/issues/107","repository_url":"https://api.github.com/repos/w3c/activitypub","labels_url":"https://api.github.com/repos/w3c/activitypub/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/w3c/activitypub/issues/107/comments","events_url":"https://api.github.com/repos/w3c/activitypub/issues/107/events","html_url":"https://github.com/w3c/activitypub/issues/107","id":177846548,"number":107,"title":"\"source\" field","user":{"login":"cwebber","id":55698,"avatar_url":"https://avatars.githubusercontent.com/u/55698?v=3","gravatar_id":"","url":"https://api.github.com/users/cwebber","html_url":"https://github.com/cwebber","followers_url":"https://api.github.com/users/cwebber/followers","following_url":"https://api.github.com/users/cwebber/following{/other_user}","gists_url":"https://api.github.com/users/cwebber/gists{/gist_id}","starred_url":"https://api.github.com/users/cwebber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwebber/subscriptions","organizations_url":"https://api.github.com/users/cwebber/orgs","repos_url":"https://api.github.com/users/cwebber/repos","events_url":"https://api.github.com/users/cwebber/events{/privacy}","received_events_url":"https://api.github.com/users/cwebber/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-19T17:29:42Z","updated_at":"2016-10-13T16:01:27Z","closed_at":"2016-10-03T21:46:10Z","body":"It would be good to have a \"source\" field, so if your \"content\" on a Note, Article, or whatever had markdown, restructured text, or org-mode formatting which you used to render the html \"content\", clients could let you update using the original.  @xray7224 and I have talked about this multiple times, but somehow I never filed an issue.\r\n\r\nAnyway, it could look something like this:\r\n\r\n```\r\n{\"type\": \"Note\",\r\n \"content\": \"<p>Checking out this <a href=\\\"http://foo.example/\\\">cool website</a>\",\r\n \"source\": {\r\n    \"content\": \"Checking out this [cool website](http://foo.example)\",\r\n    \"mediaType\": \"text/markdown\"}}\r\n```"},"comment":{"url":"https://api.github.com/repos/w3c/activitypub/issues/comments/253557954","html_url":"https://github.com/w3c/activitypub/issues/107#issuecomment-253557954","issue_url":"https://api.github.com/repos/w3c/activitypub/issues/107","id":253557954,"user":{"login":"cwebber","id":55698,"avatar_url":"https://avatars.githubusercontent.com/u/55698?v=3","gravatar_id":"","url":"https://api.github.com/users/cwebber","html_url":"https://github.com/cwebber","followers_url":"https://api.github.com/users/cwebber/followers","following_url":"https://api.github.com/users/cwebber/following{/other_user}","gists_url":"https://api.github.com/users/cwebber/gists{/gist_id}","starred_url":"https://api.github.com/users/cwebber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwebber/subscriptions","organizations_url":"https://api.github.com/users/cwebber/orgs","repos_url":"https://api.github.com/users/cwebber/repos","events_url":"https://api.github.com/users/cwebber/events{/privacy}","received_events_url":"https://api.github.com/users/cwebber/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T16:01:27Z","updated_at":"2016-10-13T16:01:27Z","body":"@jaywink so, you *could* do markdown as the thing pushed around and set a contentType for that.  But I really don't think it's a good idea.  Markdown is an especially clear example of why that's a bad idea: there are *so many* variants of Markdown that you can't trust two servers to render things the same way!  We're typing right now on a platform that has a totally unique flavor of Markdown, after all...\r\n\r\nSo there's good reason why the HTML-rendered version of content is preferred, even though you *could* make the content be markdown.  (Other servers might not recognize it though.)"}}
{"actor":{"display_login":"cwebber"}}