ノート/ハイライトの取得に認証を要求
This commit is contained in:
parent
6ea7c37fc8
commit
7022c2f912
@ -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,
|
||||
|
@ -15,7 +15,7 @@ import { CacheService } from '@/core/CacheService.js';
|
||||
export const meta = {
|
||||
tags: ['notes'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
allowGet: true,
|
||||
cacheSec: 3600,
|
||||
|
||||
|
@ -14,7 +14,7 @@ import { ApiError } from '../../error.js';
|
||||
export const meta = {
|
||||
tags: ['notes'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
res: {
|
||||
type: 'object',
|
||||
|
@ -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,
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user