ノート/ハイライトの取得に認証を要求

This commit is contained in:
hijiki 2024-10-20 17:39:30 +09:00
parent 6ea7c37fc8
commit 7022c2f912
5 changed files with 7 additions and 4 deletions

View File

@ -11,6 +11,7 @@ import { QueueService } from '@/core/QueueService.js';
export const meta = {
secure: true,
requireCredential: true,
requireModerator: true,
limit: {
duration: ms('1hour'),
max: 1,

View File

@ -15,7 +15,7 @@ import { CacheService } from '@/core/CacheService.js';
export const meta = {
tags: ['notes'],
requireCredential: false,
requireCredential: true,
allowGet: true,
cacheSec: 3600,

View File

@ -14,7 +14,7 @@ import { ApiError } from '../../error.js';
export const meta = {
tags: ['notes'],
requireCredential: false,
requireCredential: true,
res: {
type: 'object',

View File

@ -13,9 +13,9 @@ import { CacheService } from '@/core/CacheService.js';
import { isUserRelated } from '@/misc/is-user-related.js';
export const meta = {
tags: ['notes'],
tags: ['users', 'notes'],
requireCredential: false,
requireCredential: true,
allowGet: true,
cacheSec: 3600,

View File

@ -21,6 +21,8 @@ import { ApiError } from '@/server/api/error.js';
export const meta = {
tags: ['users', 'notes'],
requireCredential: true,
res: {
type: 'array',
optional: false, nullable: false,