summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2025-11-24 10:59:50 +0900
committerGitHub <noreply@github.com>2025-11-24 10:59:50 +0900
commitea40a0756f6677af59341607cad34224045521a2 (patch)
tree9bd0b41eccaf747fa9443f9ea92c4940f632303e /packages/backend/src/server/api
parentfix(backend): `clips/my-favorites` APIをページネーションに対応さ... (diff)
downloadmisskey-ea40a0756f6677af59341607cad34224045521a2.tar.gz
misskey-ea40a0756f6677af59341607cad34224045521a2.tar.bz2
misskey-ea40a0756f6677af59341607cad34224045521a2.zip
fix(backend): DeepL翻訳のAPIキー指定方式変更に対応 (#16839)
* spec: DeepL Deprecation of query parameter and request body authentication (MisskeyIO#1096) https://developers.deepl.com/docs/resources/breaking-changes-change-notices/november-2025-deprecation-of-legacy-auth-methods * Update Changelog * Update Changelog * :v: [ci skip] --------- Co-authored-by: あわわわとーにゅ <17376330+u1-liquid@users.noreply.github.com>
Diffstat (limited to 'packages/backend/src/server/api')
-rw-r--r--packages/backend/src/server/api/endpoints/notes/translate.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/endpoints/notes/translate.ts b/packages/backend/src/server/api/endpoints/notes/translate.ts
index e9a6a36b02..cd7d46007c 100644
--- a/packages/backend/src/server/api/endpoints/notes/translate.ts
+++ b/packages/backend/src/server/api/endpoints/notes/translate.ts
@@ -95,7 +95,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
if (targetLang.includes('-')) targetLang = targetLang.split('-')[0];
const params = new URLSearchParams();
- params.append('auth_key', this.serverSettings.deeplAuthKey);
params.append('text', note.text);
params.append('target_lang', targetLang);
@@ -104,6 +103,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
const res = await this.httpRequestService.send(endpoint, {
method: 'POST',
headers: {
+ 'Authorization': `DeepL-Auth-Key ${this.serverSettings.deeplAuthKey}`,
'Content-Type': 'application/x-www-form-urlencoded',
Accept: 'application/json, */*',
},