feat: Add html_uri field to Notes

This commit is contained in:
Jesse Wierzbinski 2024-10-18 11:07:03 +02:00
parent 63446dee02
commit c88709dc25
No known key found for this signature in database

View file

@ -89,6 +89,9 @@ Notes represent a piece of content on a Versia instance. They can be posted by [
<Property name="subject" type="string" required={false}> <Property name="subject" type="string" required={false}>
A subject for the note. Useful for clients to display a "content warning" or "spoiler" feature, such as on Mastodon. Must be a plaintext string (`text/plain`). A subject for the note. Useful for clients to display a "content warning" or "spoiler" feature, such as on Mastodon. Must be a plaintext string (`text/plain`).
</Property> </Property>
<Property name="html_uri" type="URI" required={false} typeLink="/types#uri">
URI to the note in HTML, for web browsers. Useful for "open this note on remote instance" functionality.
</Property>
</Properties> </Properties>
</Col> </Col>
<Col sticky> <Col sticky>
@ -126,6 +129,7 @@ Notes represent a piece of content on a Versia instance. They can be posted by [
], ],
"author": "https://versia.social/users/018eb863-753f-76ff-83d6-fd590de7740a", "author": "https://versia.social/users/018eb863-753f-76ff-83d6-fd590de7740a",
"category": "microblog", "category": "microblog",
"html_uri": "https://versia.social/@jessew/17652802716161",
"content": { "content": {
"text/html": { "text/html": {
"content": "<p>In the next versia-fe update: account settings, finally!</p>" "content": "<p>In the next versia-fe update: account settings, finally!</p>"