1
0
Fork 1
mirror of https://example.com synced 2024-11-23 04:56:38 +09:00

fix: require credentials in the notes/translate endpoint

This commit is contained in:
naskya 2023-09-03 11:18:48 +09:00
parent 26b4c6404a
commit f1451c659d
Signed by: naskya
GPG key ID: 164DFF24E2D40139
2 changed files with 8 additions and 2 deletions

7
docs/api-change.md Normal file
View file

@ -0,0 +1,7 @@
# Changes to the Firefish API
## v1.0.5 (unreleased)
### dev11
- `notes/translate` now requires credentials.

View file

@ -4,7 +4,6 @@ import config from "@/config/index.js";
import { Converter } from "opencc-js";
import { getAgentByUrl } from "@/misc/fetch.js";
import { fetchMeta } from "@/misc/fetch-meta.js";
import { Notes } from "@/models/index.js";
import { ApiError } from "../../error.js";
import { getNote } from "../../common/getters.js";
import define from "../../define.js";
@ -12,7 +11,7 @@ import define from "../../define.js";
export const meta = {
tags: ["notes"],
requireCredential: false,
requireCredential: true,
requireCredentialPrivateMode: true,
res: {