refactor: ♻️ Remove extension_type in favour of using the type field on entities

This commit is contained in:
Jesse Wierzbinski 2024-08-24 14:29:54 +02:00
parent 228ef3c98d
commit 596b42474f
No known key found for this signature in database
9 changed files with 20 additions and 25 deletions

View file

@ -19,7 +19,7 @@ Likes are a way for users to show appreciation for a note, like Twitter's "heart
<Row>
<Col>
<Properties>
<Property name="extension_type" type="string" required={true}>
<Property name="type" type="string" required={true}>
Must be `pub.versia:likes/Like`.
</Property>
<Property name="author" type="URI" required={true} typeLink="/types#uri">
@ -36,8 +36,7 @@ Likes are a way for users to show appreciation for a note, like Twitter's "heart
```jsonc {{ 'title': 'Example Like' }}
{
"id": "3e7e4750-afd4-4d99-a256-02f0710a0520",
"type": "Extension",
"extension_type": "pub.versia:likes/Like",
"type": "pub.versia:likes/Like",
"created_at": "2021-01-01T00:00:00.000Z",
"author": "https://example.com/users/6e0204a2-746c-4972-8602-c4f37fc63bbe",
"uri": "https://example.com/likes/3e7e4750-afd4-4d99-a256-02f0710a0520",
@ -57,7 +56,7 @@ Dislikes are a way for users to show disapproval for a note, like YouTube's "dis
<Row>
<Col>
<Properties>
<Property name="extension_type" type="string" required={true}>
<Property name="type" type="string" required={true}>
Must be `pub.versia:likes/Dislike`.
</Property>
<Property name="author" type="URI" required={true} typeLink="/types#uri">
@ -74,8 +73,7 @@ Dislikes are a way for users to show disapproval for a note, like YouTube's "dis
```jsonc {{ 'title': 'Example Dislike' }}
{
"id": "3e7e4750-afd4-4d99-a256-02f0710a0520",
"type": "Extension",
"extension_type": "pub.versia:likes/Dislike",
"type": "pub.versia:likes/Dislike",
"created_at": "2021-01-01T00:00:00.000Z",
"author": "https://example.com/users/6e0204a2-746c-4972-8602-c4f37fc63bbe",
"uri": "https://example.com/dislikes/3e7e4750-afd4-4d99-a256-02f0710a0520",