From 3fab58262758330a1d4b5c98ece642b9bbfafa71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 18 Dec 2022 18:26:22 +0100 Subject: [PATCH] List groups-related endpoints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/utils/features.ts | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/app/soapbox/utils/features.ts b/app/soapbox/utils/features.ts index 363f08c18d..c400d9abc4 100644 --- a/app/soapbox/utils/features.ts +++ b/app/soapbox/utils/features.ts @@ -414,7 +414,33 @@ const getInstanceFeatures = (instance: Instance) => { */ frontendConfigurations: v.software === PLEROMA, - groups: v.software === MASTODON, + /** + * Groups. + * @see POST /api/v1/groups + * @see GET /api/v1/groups + * @see GET /api/v1/groups/:id + * @see POST /api/v1/groups/:id/join + * @see POST /api/v1/groups/:id/leave + * @see GET /api/v1/groups/:id/memberships + * @see PUT /api/v1/groups/:group_id + * @see DELETE /api/v1/groups/:group_id + * @see GET /api/v1/groups/:group_id/membership_requests + * @see POST /api/v1/groups/:group_id/membership_requests/:account_id/authorize + * @see POST /api/v1/groups/:group_id/membership_requests/:account_id/reject + * @see DELETE /api/v1/groups/:group_id/statuses/:id + * @see POST /api/v1/groups/:group_id/kick?account_ids[]=… + * @see GET /api/v1/groups/:group_id/blocks + * @see POST /api/v1/groups/:group_id/blocks?account_ids[]=… + * @see DELETE /api/v1/groups/:group_id/blocks?account_ids[]=… + * @see POST /api/v1/groups/:group_id/promote?role=new_role&account_ids[]=… + * @see POST /api/v1/groups/:group_id/demote?role=new_role&account_ids[]=… + * @see GET /api/v1/admin/groups + * @see GET /api/v1/admin/groups/:group_id + * @see POST /api/v1/admin/groups/:group_id/suspend + * @see POST /api/v1/admin/groups/:group_id/unsuspend + * @see DELETE /api/v1/admin/groups/:group_id + */ + groups: v.software === MASTODON && gte(v.compatVersion, '3.5.3'), // '4.1.0' ? /** * Can hide follows/followers lists and counts.