うさぎ

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

View File

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