ほとんどのapiエンドポイントを認証ありにした

This commit is contained in:
hijiki 2024-11-08 04:28:00 +09:00
parent 222cdcf688
commit e2689a1d8d
24 changed files with 27 additions and 20 deletions

View File

@ -13,6 +13,8 @@ import { DI } from '@/di-symbols.js';
export const meta = {
tags: ['notes'],
requireCredential: true,
res: {
type: 'array',
optional: false, nullable: false,

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,7 +13,7 @@ import { ApiError } from '../../error.js';
export const meta = {
tags: ['role', 'users'],
requireCredential: false,
requireCredential: true,
errors: {
noSuchRole: {

View File

@ -15,7 +15,7 @@ import { ApiError } from '../../error.js';
export const meta = {
tags: ['role', 'users'],
requireCredential: false,
requireCredential: true,
errors: {
noSuchRole: {

View File

@ -13,7 +13,7 @@ import { DI } from '@/di-symbols.js';
export const meta = {
tags: ['users'],
requireCredential: false,
requireCredential: true,
res: {
type: 'object',

View File

@ -13,7 +13,7 @@ import { DI } from '@/di-symbols.js';
export const meta = {
tags: ['users'],
requireCredential: false,
requireCredential: true,
res: {
type: 'array',

View File

@ -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',

View File

@ -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: {

View File

@ -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: {

View File

@ -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.',

View File

@ -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.',

View File

@ -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: {

View File

@ -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.',

View File

@ -14,7 +14,7 @@ import { ApiError } from '../../../error.js';
export const meta = {
tags: ['lists', 'account'],
requireCredential: false,
requireCredential: true,
kind: 'read:account',

View File

@ -13,7 +13,7 @@ import { DI } from '@/di-symbols.js';
export const meta = {
tags: ['lists', 'account'],
requireCredential: false,
requireCredential: true,
kind: 'read:account',

View File

@ -13,7 +13,7 @@ import { ApiError } from '../../../error.js';
export const meta = {
tags: ['lists', 'account'],
requireCredential: false,
requireCredential: true,
kind: 'read:account',

View File

@ -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',

View File

@ -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: {

View File

@ -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.',

View File

@ -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.',

View File

@ -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.',

View File

@ -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.',

View File

@ -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/>

View File

@ -39,7 +39,7 @@ SPDX-License-Identifier: AGPL-3.0-only
import { ref } from 'vue';
import * as Misskey from 'misskey-js';
// import XTimeline from './welcome.timeline.vue';
// import MarqueeText from '@/components/MkMarquee.vue';
// import MarqueeText from '@/components/MkMarquee.vue';
import MkFeaturedPhotos from '@/components/MkFeaturedPhotos.vue';
import misskeysvg from '/client-assets/sharkey.svg';
import { misskeyApiGet } from '@/scripts/misskey-api.js';