うさぎ

This commit is contained in:
hijiki 2024-10-25 20:07:22 +09:00
parent 94f9257328
commit b3fc2b484a
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ import { ApiError } from '../../error.js';
export const meta = { export const meta = {
tags: ['notes'], tags: ['notes'],
requireCredential: true, requireCredential: false,
res: { res: {
type: 'object', type: 'object',
@ -44,7 +44,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
constructor( constructor(
@Inject(DI.notesRepository) @Inject(DI.notesRepository)
private notesRepository: NotesRepository, private notesRepository: NotesRepository,
private noteEntityService: NoteEntityService, private noteEntityService: NoteEntityService,
private queryService: QueryService, private queryService: QueryService,
) { ) {
@ -56,7 +56,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
if (me) { if (me) {
this.queryService.generateBlockedUserQuery(query, me); this.queryService.generateBlockedUserQuery(query, me);
} }
const note = await query.getOne(); const note = await query.getOne();
if (note === null) { if (note === null) {

View File

@ -21,7 +21,7 @@ import { ApiError } from '@/server/api/error.js';
export const meta = { export const meta = {
tags: ['users', 'notes'], tags: ['users', 'notes'],
requireCredential: true, requireCredential: false,
res: { res: {
type: 'array', type: 'array',