diff --git a/api/api/v1/accounts/:id/followers.ts b/api/api/v1/accounts/:id/followers.ts index f5ac44c8..1d7c7cd9 100644 --- a/api/api/v1/accounts/:id/followers.ts +++ b/api/api/v1/accounts/:id/followers.ts @@ -72,7 +72,8 @@ const route = createRoute({ .optional() .openapi({ description: "Links to the next and previous pages", - example: `; rel="next", ; rel="prev"`, + example: + '; rel="next", ; rel="prev"', externalDocs: { url: "https://docs.joinmastodon.org/api/guidelines/#pagination", }, diff --git a/api/api/v1/accounts/:id/following.ts b/api/api/v1/accounts/:id/following.ts index d58ca156..afa75033 100644 --- a/api/api/v1/accounts/:id/following.ts +++ b/api/api/v1/accounts/:id/following.ts @@ -72,7 +72,8 @@ const route = createRoute({ .optional() .openapi({ description: "Links to the next and previous pages", - example: `; rel="next", ; rel="prev"`, + example: + '; rel="next", ; rel="prev"', externalDocs: { url: "https://docs.joinmastodon.org/api/guidelines/#pagination", }, diff --git a/api/api/v1/accounts/index.ts b/api/api/v1/accounts/index.ts index f0f3ad80..86585dc5 100644 --- a/api/api/v1/accounts/index.ts +++ b/api/api/v1/accounts/index.ts @@ -61,13 +61,13 @@ const route = createRoute({ body: { content: { "application/json": { - schema: schema, + schema, }, "multipart/form-data": { - schema: schema, + schema, }, "application/x-www-form-urlencoded": { - schema: schema, + schema, }, }, }, @@ -347,9 +347,9 @@ export default apiRoute((app) => } await User.fromDataLocal({ - username: username, - password: password, - email: email, + username, + password, + email, }); return context.text("", 200); diff --git a/api/api/v1/apps/index.ts b/api/api/v1/apps/index.ts index 2670f27f..78a3b946 100644 --- a/api/api/v1/apps/index.ts +++ b/api/api/v1/apps/index.ts @@ -68,7 +68,7 @@ export default apiRoute((app) => name: client_name, redirectUri: redirect_uris.join("\n"), scopes: scopes.join(" "), - website: website, + website, clientId: randomString(32, "base64url"), secret: randomString(64, "base64url"), }); diff --git a/api/api/v1/blocks/index.ts b/api/api/v1/blocks/index.ts index 429725a5..ac9698b0 100644 --- a/api/api/v1/blocks/index.ts +++ b/api/api/v1/blocks/index.ts @@ -57,7 +57,8 @@ const route = createRoute({ .optional() .openapi({ description: "Links to the next and previous pages", - example: `; rel="next", ; rel="prev"`, + example: + '; rel="next", ; rel="prev"', externalDocs: { url: "https://docs.joinmastodon.org/api/guidelines/#pagination", }, diff --git a/api/api/v1/emojis/:id/index.ts b/api/api/v1/emojis/:id/index.ts index 4a7a5811..61618685 100644 --- a/api/api/v1/emojis/:id/index.ts +++ b/api/api/v1/emojis/:id/index.ts @@ -104,13 +104,13 @@ const routePatch = createRoute({ body: { content: { "application/json": { - schema: schema, + schema, }, "application/x-www-form-urlencoded": { - schema: schema, + schema, }, "multipart/form-data": { - schema: schema, + schema, }, }, }, diff --git a/api/api/v1/emojis/index.ts b/api/api/v1/emojis/index.ts index 81105340..1acfd351 100644 --- a/api/api/v1/emojis/index.ts +++ b/api/api/v1/emojis/index.ts @@ -53,13 +53,13 @@ const route = createRoute({ body: { content: { "application/json": { - schema: schema, + schema, }, "multipart/form-data": { - schema: schema, + schema, }, "application/x-www-form-urlencoded": { - schema: schema, + schema, }, }, }, diff --git a/api/api/v1/favourites/index.ts b/api/api/v1/favourites/index.ts index 9c4d2d04..fd2c871f 100644 --- a/api/api/v1/favourites/index.ts +++ b/api/api/v1/favourites/index.ts @@ -56,7 +56,8 @@ const route = createRoute({ .optional() .openapi({ description: "Links to the next and previous pages", - example: `; rel="next", ; rel="prev"`, + example: + '; rel="next", ; rel="prev"', externalDocs: { url: "https://docs.joinmastodon.org/api/guidelines/#pagination", }, diff --git a/api/api/v1/follow_requests/index.ts b/api/api/v1/follow_requests/index.ts index cf3ac349..6e72eb73 100644 --- a/api/api/v1/follow_requests/index.ts +++ b/api/api/v1/follow_requests/index.ts @@ -57,7 +57,8 @@ const route = createRoute({ .optional() .openapi({ description: "Links to the next and previous pages", - example: `; rel="next", ; rel="prev"`, + example: + '; rel="next", ; rel="prev"', externalDocs: { url: "https://docs.joinmastodon.org/api/guidelines/#pagination", }, diff --git a/api/api/v1/mutes/index.ts b/api/api/v1/mutes/index.ts index 6b3230b9..7d99c7b7 100644 --- a/api/api/v1/mutes/index.ts +++ b/api/api/v1/mutes/index.ts @@ -57,7 +57,8 @@ const route = createRoute({ .optional() .openapi({ description: "Links to the next and previous pages", - example: `; rel="next", ; rel="prev"`, + example: + '; rel="next", ; rel="prev"', externalDocs: { url: "https://docs.joinmastodon.org/api/guidelines/#pagination", }, diff --git a/api/api/v1/statuses/:id/favourited_by.ts b/api/api/v1/statuses/:id/favourited_by.ts index 33a4293e..74c607c2 100644 --- a/api/api/v1/statuses/:id/favourited_by.ts +++ b/api/api/v1/statuses/:id/favourited_by.ts @@ -70,7 +70,8 @@ const route = createRoute({ .optional() .openapi({ description: "Links to the next and previous pages", - example: `; rel="next", ; rel="prev"`, + example: + '; rel="next", ; rel="prev"', externalDocs: { url: "https://docs.joinmastodon.org/api/guidelines/#pagination", }, diff --git a/api/api/v1/statuses/:id/index.ts b/api/api/v1/statuses/:id/index.ts index f9495858..a29bd3ac 100644 --- a/api/api/v1/statuses/:id/index.ts +++ b/api/api/v1/statuses/:id/index.ts @@ -180,13 +180,13 @@ const routePut = createRoute({ body: { content: { "application/json": { - schema: schema, + schema, }, "application/x-www-form-urlencoded": { - schema: schema, + schema, }, "multipart/form-data": { - schema: schema, + schema, }, }, }, diff --git a/api/api/v1/statuses/:id/reblogged_by.ts b/api/api/v1/statuses/:id/reblogged_by.ts index d94908fd..ab7ca237 100644 --- a/api/api/v1/statuses/:id/reblogged_by.ts +++ b/api/api/v1/statuses/:id/reblogged_by.ts @@ -70,7 +70,8 @@ const route = createRoute({ .optional() .openapi({ description: "Links to the next and previous pages", - example: `; rel="next", ; rel="prev"`, + example: + '; rel="next", ; rel="prev"', externalDocs: { url: "https://docs.joinmastodon.org/api/guidelines/#pagination", }, diff --git a/api/api/v1/statuses/index.ts b/api/api/v1/statuses/index.ts index 1635897b..8f56c010 100644 --- a/api/api/v1/statuses/index.ts +++ b/api/api/v1/statuses/index.ts @@ -121,13 +121,13 @@ const route = createRoute({ body: { content: { "application/json": { - schema: schema, + schema, }, "application/x-www-form-urlencoded": { - schema: schema, + schema, }, "multipart/form-data": { - schema: schema, + schema, }, }, }, diff --git a/api/api/v1/timelines/home.ts b/api/api/v1/timelines/home.ts index 3179f0b2..4455bebd 100644 --- a/api/api/v1/timelines/home.ts +++ b/api/api/v1/timelines/home.ts @@ -61,7 +61,8 @@ const route = createRoute({ .optional() .openapi({ description: "Links to the next and previous pages", - example: `; rel="next", ; rel="prev"`, + example: + '; rel="next", ; rel="prev"', externalDocs: { url: "https://docs.joinmastodon.org/api/guidelines/#pagination", }, diff --git a/api/api/v1/timelines/public.ts b/api/api/v1/timelines/public.ts index 9143dda5..7a9306b9 100644 --- a/api/api/v1/timelines/public.ts +++ b/api/api/v1/timelines/public.ts @@ -81,7 +81,8 @@ const route = createRoute({ .optional() .openapi({ description: "Links to the next and previous pages", - example: `; rel="next", ; rel="prev"`, + example: + '; rel="next", ; rel="prev"', externalDocs: { url: "https://docs.joinmastodon.org/api/guidelines/#pagination", }, diff --git a/api/api/v2/filters/index.ts b/api/api/v2/filters/index.ts index 97b28d44..12a09b2a 100644 --- a/api/api/v2/filters/index.ts +++ b/api/api/v2/filters/index.ts @@ -143,7 +143,7 @@ export default apiRoute((app) => { await db .insert(Filters) .values({ - title: title, + title, context: ctx, filterAction: filter_action, expireAt: new Date(