This commit is contained in:
おさむのひと 2025-03-20 09:38:31 +09:00
parent 776e90f28a
commit f1248349b3
9 changed files with 2583 additions and 2345 deletions

26
locales/index.d.ts vendored
View File

@ -11286,6 +11286,32 @@ export interface Locale extends ILocale {
*/
"serverHostPlaceholder": string;
};
"_noteMuting": {
/**
*
*/
"noteMuting": string;
/**
*
*/
"muteNote": string;
/**
*
*/
"unmuteNote": string;
/**
*
*/
"notMutedNote": string;
/**
*
*/
"labelSuffix": string;
/**
*
*/
"unmuteCaption": string;
};
}
declare const locales: {
[lang: string]: Locale;

View File

@ -3023,6 +3023,7 @@ _search:
serverHostPlaceholder: "例: misskey.example.com"
_noteMuting:
noteMuting: "ミュートしたノート"
muteNote: "ノートをミュート"
unmuteNote: "ノートのミュートを解除"
notMutedNote: "このノートはミュートされていません"

View File

@ -7,7 +7,6 @@ import { Injectable } from '@nestjs/common';
import ms from 'ms';
import { NoteMutingService } from '@/core/note/NoteMutingService.js';
import { Endpoint } from '@/server/api/endpoint-base.js';
import { GetterService } from '@/server/api/GetterService.js';
import { ApiError } from '../../../error.js';
export const meta = {

View File

@ -174,7 +174,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</SearchMarker>
<SearchMarker
:label="'ミュートしたノート'"
:label="i18n.ts._noteMuting.noteMuting"
:keywords="['mute', 'note']"
>
<MkFolder>

View File

@ -622,6 +622,11 @@ export const searchIndexes: SearchIndexItem[] = [
label: i18n.ts.blockedUsers,
keywords: ['block', 'user'],
},
{
id: 'b92aHg3qp',
label: i18n.ts._noteMuting.noteMuting,
keywords: ['mute', 'note'],
},
],
label: i18n.ts.muteAndBlock,
keywords: ['mute', 'block', i18n.ts._settings.muteAndBlockBanner],

View File

@ -15,7 +15,8 @@
"openapi-typescript": "6.7.6",
"ts-case-convert": "2.1.0",
"tsx": "4.19.3",
"typescript": "5.8.2"
"typescript": "5.8.2",
"eslint": "9.22.0"
},
"files": [
"built"

File diff suppressed because it is too large Load Diff

View File

@ -2889,6 +2889,33 @@ export type paths = {
*/
post: operations['notes___mentions'];
};
'/notes/muting/create': {
/**
* notes/muting/create
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *write:account*
*/
post: operations['notes___muting___create'];
};
'/notes/muting/delete': {
/**
* notes/muting/delete
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *write:account*
*/
post: operations['notes___muting___delete'];
};
'/notes/muting/list': {
/**
* notes/muting/list
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *read:account*
*/
post: operations['notes___muting___list'];
};
'/notes/polls/recommendation': {
/**
* notes/polls/recommendation
@ -23072,6 +23099,181 @@ export type operations = {
};
};
};
/**
* notes/muting/create
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *write:account*
*/
notes___muting___create: {
requestBody: {
content: {
'application/json': {
/** Format: misskey:id */
noteId: string;
expiresAt?: number | null;
};
};
};
responses: {
/** @description OK (without any results) */
204: {
content: never;
};
/** @description Client error */
400: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Authentication error */
401: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Forbidden error */
403: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description I'm Ai */
418: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Too many requests */
429: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Internal server error */
500: {
content: {
'application/json': components['schemas']['Error'];
};
};
};
};
/**
* notes/muting/delete
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *write:account*
*/
notes___muting___delete: {
requestBody: {
content: {
'application/json': {
/** Format: misskey:id */
noteId: string;
};
};
};
responses: {
/** @description OK (without any results) */
204: {
content: never;
};
/** @description Client error */
400: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Authentication error */
401: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Forbidden error */
403: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description I'm Ai */
418: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Internal server error */
500: {
content: {
'application/json': components['schemas']['Error'];
};
};
};
};
/**
* notes/muting/list
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *read:account*
*/
notes___muting___list: {
requestBody: {
content: {
'application/json': {
/** Format: misskey:id */
sinceId?: string | null;
/** Format: misskey:id */
untilId?: string | null;
/** @default 10 */
limit?: number;
offset?: number;
};
};
};
responses: {
/** @description OK (with results) */
200: {
content: {
'application/json': ({
id: string;
/** Format: date-time */
expiresAt: string | null;
note: components['schemas']['Note'];
})[];
};
};
/** @description Client error */
400: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Authentication error */
401: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Forbidden error */
403: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description I'm Ai */
418: {
content: {
'application/json': components['schemas']['Error'];
};
};
/** @description Internal server error */
500: {
content: {
'application/json': components['schemas']['Error'];
};
};
};
};
/**
* notes/polls/recommendation
* @description No description provided.
@ -23696,6 +23898,7 @@ export type operations = {
'application/json': {
isFavorited: boolean;
isMutedThread: boolean;
isMutedNote: boolean;
};
};
};

View File

@ -1374,6 +1374,9 @@ importers:
'@typescript-eslint/parser':
specifier: 8.26.0
version: 8.26.0(eslint@9.22.0)(typescript@5.8.2)
eslint:
specifier: 9.22.0
version: 9.22.0
openapi-types:
specifier: 12.1.3
version: 12.1.3