summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/auth_start.php4
-rw-r--r--views/creating-a-micropub-endpoint.php10
-rw-r--r--views/dashboard.php1
-rw-r--r--views/email.php18
4 files changed, 8 insertions, 25 deletions
diff --git a/views/auth_start.php b/views/auth_start.php
index a6df0da..856caec 100644
--- a/views/auth_start.php
+++ b/views/auth_start.php
@@ -48,8 +48,8 @@
<form action="/auth/redirect" method="get">
<p>Choose the scope to request:</p>
<ul style="list-style-type: none;">
- <li><input type="radio" name="scope" value="create update media" checked="checked"> create update media (default)</li>
- <li><input type="radio" name="scope" value="create"> create</li>
+ <li><input type="radio" name="scope" value="profile create update media" checked="checked"> profile create update media (default)</li>
+ <li><input type="radio" name="scope" value="create"> profile create</li>
<li><input type="radio" name="scope" value="post"> post (legacy)</li>
</ul>
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>
diff --git a/views/dashboard.php b/views/dashboard.php
index 7b8af63..15f3ff7 100644
--- a/views/dashboard.php
+++ b/views/dashboard.php
@@ -27,7 +27,6 @@
<?php if(supports_post_type($this->user, 'review')): ?>
<li><a href="/review">⭐️</a></li>
<?php endif; ?>
- <li><a href="/email">✉️</a></li>
<li><a href="/settings">⚙</a></li>
</ul>
<div style="clear:both;"></div>
diff --git a/views/email.php b/views/email.php
index e3464f6..4781c7a 100644
--- a/views/email.php
+++ b/views/email.php
@@ -1,22 +1,6 @@
<div class="narrow">
<?= partial('partials/header') ?>
- <div class="jumbotron" style="margin-top: 20px;">
- <p>
- Send email or MMS to<br>
- <a href="mailto:<?= $this->user->email_username . '@' . Config::$hostname ?>"><?= $this->user->email_username . '@' . Config::$hostname ?></a>
- </p>
- </div>
-
- <div style="width: 80%; margin: 0 auto;">
- <h3>Email Subject</h3>
- <p>If you add a subject line to your email, it will be sent as the "name" property which indicates to your Micropub endpoint that this is a blog post.</p>
-
- <h3>Email and MMS body</h3>
- <p>The text of your email or MMS will be send as the "content" property, which is the main contents of your post. Plaintext only for now.</p>
-
- <h3>Photo</h3>
- <p>If you attach a photo to your email or MMS, it will be sent to your Micropub endpoint. (Only one photo is currently supported.)</p>
- </div>
+ <p>This feature is not available.</p>
</div>