ほとんどのapiエンドポイントを認証ありにした
This commit is contained in:
parent
222cdcf688
commit
e2689a1d8d
@ -13,6 +13,8 @@ import { DI } from '@/di-symbols.js';
|
||||
export const meta = {
|
||||
tags: ['notes'],
|
||||
|
||||
requireCredential: true,
|
||||
|
||||
res: {
|
||||
type: 'array',
|
||||
optional: false, nullable: false,
|
||||
|
@ -14,7 +14,7 @@ import { ApiError } from '../../error.js';
|
||||
export const meta = {
|
||||
tags: ['notes'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
res: {
|
||||
type: 'object',
|
||||
|
@ -13,7 +13,7 @@ import { ApiError } from '../../error.js';
|
||||
export const meta = {
|
||||
tags: ['role', 'users'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
errors: {
|
||||
noSuchRole: {
|
||||
|
@ -15,7 +15,7 @@ import { ApiError } from '../../error.js';
|
||||
export const meta = {
|
||||
tags: ['role', 'users'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
errors: {
|
||||
noSuchRole: {
|
||||
|
@ -13,7 +13,7 @@ import { DI } from '@/di-symbols.js';
|
||||
export const meta = {
|
||||
tags: ['users'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
res: {
|
||||
type: 'object',
|
||||
|
@ -13,7 +13,7 @@ import { DI } from '@/di-symbols.js';
|
||||
export const meta = {
|
||||
tags: ['users'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
res: {
|
||||
type: 'array',
|
||||
|
@ -9,7 +9,8 @@ import type { UserProfilesRepository } from '@/models/_.js';
|
||||
import { DI } from '@/di-symbols.js';
|
||||
|
||||
export const meta = {
|
||||
requireCredential: false,
|
||||
|
||||
requireCredential: true,
|
||||
|
||||
res: {
|
||||
type: 'array',
|
||||
|
@ -13,6 +13,7 @@ import { DI } from '@/di-symbols.js';
|
||||
export const meta = {
|
||||
tags: ['users', 'clips'],
|
||||
|
||||
requireCredential: true,
|
||||
description: 'Show all clips this user owns.',
|
||||
|
||||
res: {
|
||||
|
@ -13,6 +13,7 @@ import { DI } from '@/di-symbols.js';
|
||||
export const meta = {
|
||||
tags: ['users', 'flashs'],
|
||||
|
||||
requireCredential: true,
|
||||
description: 'Show all flashs this user created.',
|
||||
|
||||
res: {
|
||||
|
@ -16,7 +16,7 @@ import { ApiError } from '../../error.js';
|
||||
export const meta = {
|
||||
tags: ['users'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
description: 'Show everyone that follows this user.',
|
||||
|
||||
|
@ -17,7 +17,7 @@ import { ApiError } from '../../error.js';
|
||||
export const meta = {
|
||||
tags: ['users'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
description: 'Show everyone that this user is following.',
|
||||
|
||||
|
@ -13,6 +13,7 @@ import { DI } from '@/di-symbols.js';
|
||||
export const meta = {
|
||||
tags: ['users', 'gallery'],
|
||||
|
||||
requireCredential: true,
|
||||
description: 'Show all gallery posts by the given user.',
|
||||
|
||||
res: {
|
||||
|
@ -16,7 +16,7 @@ import { ApiError } from '../../error.js';
|
||||
export const meta = {
|
||||
tags: ['users'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
description: 'Get a list of other users that the specified user frequently replies to.',
|
||||
|
||||
|
@ -14,7 +14,7 @@ import { ApiError } from '../../../error.js';
|
||||
export const meta = {
|
||||
tags: ['lists', 'account'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
kind: 'read:account',
|
||||
|
||||
|
@ -13,7 +13,7 @@ import { DI } from '@/di-symbols.js';
|
||||
export const meta = {
|
||||
tags: ['lists', 'account'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
kind: 'read:account',
|
||||
|
||||
|
@ -13,7 +13,7 @@ import { ApiError } from '../../../error.js';
|
||||
export const meta = {
|
||||
tags: ['lists', 'account'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
kind: 'read:account',
|
||||
|
||||
|
@ -21,7 +21,7 @@ import { isQuote, isRenote } from '@/misc/is-renote.js';
|
||||
export const meta = {
|
||||
tags: ['users', 'notes'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
res: {
|
||||
type: 'array',
|
||||
|
@ -13,6 +13,7 @@ import { DI } from '@/di-symbols.js';
|
||||
export const meta = {
|
||||
tags: ['users', 'pages'],
|
||||
|
||||
requireCredential: true,
|
||||
description: 'Show all pages this user created.',
|
||||
|
||||
res: {
|
||||
|
@ -18,7 +18,7 @@ import { ApiError } from '../../error.js';
|
||||
export const meta = {
|
||||
tags: ['users', 'reactions'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
description: 'Show all reactions this user made.',
|
||||
|
||||
|
@ -10,7 +10,7 @@ import { UserSearchService } from '@/core/UserSearchService.js';
|
||||
export const meta = {
|
||||
tags: ['users'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
description: 'Search for a user by username and/or host.',
|
||||
|
||||
|
@ -15,7 +15,7 @@ import { sqlLikeEscape } from '@/misc/sql-like-escape.js';
|
||||
export const meta = {
|
||||
tags: ['users'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
description: 'Search for users.',
|
||||
|
||||
|
@ -20,7 +20,7 @@ import type { FindOptionsWhere } from 'typeorm';
|
||||
export const meta = {
|
||||
tags: ['users'],
|
||||
|
||||
requireCredential: false,
|
||||
requireCredential: true,
|
||||
|
||||
description: 'Show the properties of a user.',
|
||||
|
||||
|
@ -42,10 +42,10 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
</div>
|
||||
</div> -->
|
||||
<div v-if="instance.policies.ltlAvailable" :class="[$style.tl, $style.panel]">
|
||||
<div :class="$style.tlHeader">{{ i18n.ts.letsLookAtTimeline }}</div>
|
||||
<!-- <div :class="$style.tlHeader">{{ i18n.ts.letsLookAtTimeline }}</div>
|
||||
<div :class="$style.tlBody">
|
||||
<MkTimeline src="local"/>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<!-- <div :class="$style.panel">
|
||||
<XActiveUsersChart/>
|
||||
|
Loading…
Reference in New Issue
Block a user