mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-28 23:08:12 +09:00
use getNote instead of Notes.find
If a note is not visible to the requesting user, an error will be raised.
This commit is contained in:
parent
c4b9f702b4
commit
071f893007
@ -11,6 +11,7 @@ import { noteVisibilities } from '../../../../types.js';
|
||||
import { ApiError } from '../../error.js';
|
||||
import define from '../../define.js';
|
||||
import { HOUR } from '@/const.js';
|
||||
import { getNote } from '../../common/getters.js';
|
||||
|
||||
export const meta = {
|
||||
tags: ['notes'],
|
||||
|
Loading…
Reference in New Issue
Block a user