Use react-query and zod for announcements

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-04-09 23:38:09 +02:00
parent d4beb15d71
commit 161db37ba0
28 changed files with 391 additions and 905 deletions

View File

@ -222,7 +222,7 @@ const getInstanceFeatures = (instance: Instance) => {
* @see DELETE /api/v1/announcements/:id/reactions/:name
* @see {@link https://docs.joinmastodon.org/methods/announcements/}
*/
announcementsReactions: v.software === MASTODON && gte(v.compatVersion, '3.1.0'),
announcementsReactions: true, // v.software === MASTODON && gte(v.compatVersion, '3.1.0'),
/**
* Pleroma backups.