ノート/ハイライトの取得に認証を要求
This commit is contained in:
parent
6ea7c37fc8
commit
7022c2f912
@ -11,6 +11,7 @@ import { QueueService } from '@/core/QueueService.js';
|
|||||||
export const meta = {
|
export const meta = {
|
||||||
secure: true,
|
secure: true,
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
requireModerator: true,
|
||||||
limit: {
|
limit: {
|
||||||
duration: ms('1hour'),
|
duration: ms('1hour'),
|
||||||
max: 1,
|
max: 1,
|
||||||
|
@ -15,7 +15,7 @@ import { CacheService } from '@/core/CacheService.js';
|
|||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['notes'],
|
tags: ['notes'],
|
||||||
|
|
||||||
requireCredential: false,
|
requireCredential: true,
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 3600,
|
cacheSec: 3600,
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import { ApiError } from '../../error.js';
|
|||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['notes'],
|
tags: ['notes'],
|
||||||
|
|
||||||
requireCredential: false,
|
requireCredential: true,
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
|
@ -13,9 +13,9 @@ import { CacheService } from '@/core/CacheService.js';
|
|||||||
import { isUserRelated } from '@/misc/is-user-related.js';
|
import { isUserRelated } from '@/misc/is-user-related.js';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['notes'],
|
tags: ['users', 'notes'],
|
||||||
|
|
||||||
requireCredential: false,
|
requireCredential: true,
|
||||||
allowGet: true,
|
allowGet: true,
|
||||||
cacheSec: 3600,
|
cacheSec: 3600,
|
||||||
|
|
||||||
|
@ -21,6 +21,8 @@ import { ApiError } from '@/server/api/error.js';
|
|||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['users', 'notes'],
|
tags: ['users', 'notes'],
|
||||||
|
|
||||||
|
requireCredential: true,
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user