Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
This commit is contained in:
commit
0ea0e05e61
|
|
@ -12,6 +12,9 @@
|
||||||
### Server
|
### Server
|
||||||
- Enhance: `clips/my-favorites` APIがページネーションに対応しました
|
- Enhance: `clips/my-favorites` APIがページネーションに対応しました
|
||||||
- Enhance: メモリ使用量を削減しました
|
- Enhance: メモリ使用量を削減しました
|
||||||
|
- Fix: DeepL APIのAPIキー指定方式変更に対応
|
||||||
|
(Cherry-picked from https://github.com/MisskeyIO/misskey/pull/1096)
|
||||||
|
- 内部実装の変更にて対応可能な更新です。Misskey側の設定方法に変更はありません。
|
||||||
|
|
||||||
## 2025.11.0
|
## 2025.11.0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
if (targetLang.includes('-')) targetLang = targetLang.split('-')[0];
|
if (targetLang.includes('-')) targetLang = targetLang.split('-')[0];
|
||||||
|
|
||||||
const params = new URLSearchParams();
|
const params = new URLSearchParams();
|
||||||
params.append('auth_key', this.serverSettings.deeplAuthKey);
|
|
||||||
params.append('text', note.text);
|
params.append('text', note.text);
|
||||||
params.append('target_lang', targetLang);
|
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, {
|
const res = await this.httpRequestService.send(endpoint, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
'Authorization': `DeepL-Auth-Key ${this.serverSettings.deeplAuthKey}`,
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
Accept: 'application/json, */*',
|
Accept: 'application/json, */*',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue