summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/notes/featured.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/api/endpoints/notes/featured.ts')
-rw-r--r--src/server/api/endpoints/notes/featured.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/api/endpoints/notes/featured.ts b/src/server/api/endpoints/notes/featured.ts
index 363170ead6..c031308824 100644
--- a/src/server/api/endpoints/notes/featured.ts
+++ b/src/server/api/endpoints/notes/featured.ts
@@ -13,12 +13,13 @@ export const meta = {
requireCredential: false,
params: {
- limit: $.num.optional.range(1, 30).note({
+ limit: {
+ validator: $.num.optional.range(1, 30),
default: 10,
desc: {
'ja-JP': '最大数'
}
- })
+ }
}
};