diff options
author | Aaron Parecki <aaron@parecki.com> | 2021-07-10 14:29:02 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2021-07-10 14:29:02 -0700 |
commit | cac208229a7c12fc188bc4e2bf5ab214fe7422cc (patch) | |
tree | cfc72bb684d9f33605d2f1eb1d168b8ab5e2c237 /views | |
parent | fd758f2ce566a641695af904726178c6d20f9ae7 (diff) |
use new markdown library
Diffstat (limited to 'views')
-rw-r--r-- | views/creating-a-micropub-endpoint.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/views/creating-a-micropub-endpoint.php b/views/creating-a-micropub-endpoint.php index 4da9510..68ca8ff 100644 --- a/views/creating-a-micropub-endpoint.php +++ b/views/creating-a-micropub-endpoint.php @@ -9,7 +9,7 @@ it is ready to make requests to create posts. ### The Request -This is not intended to be a comprehensive guide to Micropub, and only includes the +This is not intended to be a comprehensive guide to Micropub, and only includes the fields that this client sends. The request to create a post will be sent with as a standard HTTP form-encoded request @@ -49,7 +49,7 @@ at hand that can be used to check: * `issued_at` - The date the token was issued. Keep in mind that it may be possible for another user besides yourself to have created -an access token at your token endpoint, so the first thing you'll do when verifying +an access token at your token endpoint, so the first thing you'll do when verifying is making sure the "me" parameter matches your own domain. This way you are the only one that can create posts on your website. @@ -57,7 +57,7 @@ one that can create posts on your website. ### Validating the Request Parameters A valid request to create a post will contain the parameters listed above. For now, -you can verify the presence of everything in the list, or you can try to genericize your +you can verify the presence of everything in the list, or you can try to genericize your micropub endpoint so that it can also create <a href="http://ownyourgram.com/creating-a-micropub-endpoint">photo posts</a>. At a bare minimum, a Micropub request will contain the following: @@ -81,7 +81,7 @@ HTTP/1.1 201 Created Location: http://example.com/post/100 </pre> -If there was an error, the response should include an HTTP error code as appropriate, +If there was an error, the response should include an HTTP error code as appropriate, and optionally an HTML or other body with more information. Below is a list of possible errors. * `HTTP 401 Unauthorized` - No access token was provided in the request. @@ -90,5 +90,5 @@ and optionally an HTML or other body with more information. Below is a list of p -<?= Markdown(ob_get_clean()) ?> +<?= \Michelf\Markdown::defaultTransform(ob_get_clean()) ?> </div> |