From 5f2f11f4aa1f54d1f00972b3c2d1010c27324e39 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Tue, 6 Aug 2024 14:38:05 +0200 Subject: [PATCH] refactor: :memo: Move user collections to separate field --- app/entities/users/page.mdx | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/app/entities/users/page.mdx b/app/entities/users/page.mdx index a3a4639..59243a8 100644 --- a/app/entities/users/page.mdx +++ b/app/entities/users/page.mdx @@ -91,22 +91,22 @@ Instance **must** be the host of the instance the user is on (hostname with opti The user's federation inbox. Refer to the [federation documentation](/federation). - + The user's federation outbox. Refer to the [federation documentation](/federation). - + User's followers. URI must resolve to a [Collection](/structures/collection) of [User](/entities/users) entities. - + Users that the user follows. URI must resolve to a [Collection](/structures/collection) of [User](/entities/users) entities. - + User's likes. URI must resolve to a [Collection](/structures/collection) of [Like](/entities/likes) entities. - + User's dislikes. URI must resolve to a [Collection](/structures/collection) of [Dislike](/entities/dislikes) entities. - + [Notes](/entities/notes) that the user wants to feature (also known as "pin") on their profile. URI must resolve to a [Collection](/structures/collection) of [Note](/entities/notes) entities. @@ -133,14 +133,20 @@ Instance **must** be the host of the instance the user is on (hostname with opti "content": "🌸🌸🌸" } }, - "dislikes": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/dislikes", + "collections": { + "dislikes": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/dislikes", + "featured": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/featured", + "followers": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/followers", + "following": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/following", + "likes": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/likes", + "outbox": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/outbox", + }, "display_name": "April The Pink (limited Sand Edition)", "extensions": { "org.lysand:custom_emojis": { "emojis": [] } }, - "featured": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/featured", "fields": [ { "key": { @@ -155,14 +161,10 @@ Instance **must** be the host of the instance the user is on (hostname with opti } } ], - "followers": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/followers", - "following": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/following", "header": null, "inbox": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/inbox", "indexable": false, - "likes": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/likes", "manually_approves_followers": false, - "outbox": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771/outbox", "public_key": { "actor": "https://social.lysand.org/users/018ec082-0ae1-761c-b2c5-22275a611771", "public_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"