Merge branch 'fix/translate-api' into 'develop'
fix: require credentials in the notes/translate endpoint See merge request firefish/firefish!10587 Co-authored-by: naskya <m@naskya.net>
This commit is contained in:
commit
4a69c58780
2 changed files with 8 additions and 2 deletions
7
docs/api-change.md
Normal file
7
docs/api-change.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Changes to the Firefish API
|
||||||
|
|
||||||
|
## v1.0.5 (unreleased)
|
||||||
|
|
||||||
|
### dev11
|
||||||
|
|
||||||
|
- `notes/translate` now requires credentials.
|
|
@ -4,7 +4,6 @@ import config from "@/config/index.js";
|
||||||
import { Converter } from "opencc-js";
|
import { Converter } from "opencc-js";
|
||||||
import { getAgentByUrl } from "@/misc/fetch.js";
|
import { getAgentByUrl } from "@/misc/fetch.js";
|
||||||
import { fetchMeta } from "@/misc/fetch-meta.js";
|
import { fetchMeta } from "@/misc/fetch-meta.js";
|
||||||
import { Notes } from "@/models/index.js";
|
|
||||||
import { ApiError } from "../../error.js";
|
import { ApiError } from "../../error.js";
|
||||||
import { getNote } from "../../common/getters.js";
|
import { getNote } from "../../common/getters.js";
|
||||||
import define from "../../define.js";
|
import define from "../../define.js";
|
||||||
|
@ -12,7 +11,7 @@ import define from "../../define.js";
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ["notes"],
|
tags: ["notes"],
|
||||||
|
|
||||||
requireCredential: false,
|
requireCredential: true,
|
||||||
requireCredentialPrivateMode: true,
|
requireCredentialPrivateMode: true,
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
|
|
Loading…
Reference in a new issue