Skip to content

Commit bb6b434

Browse files
authored
release: v2025.2.0-kakurega.1.40.1 (#169)
2 parents b4ca24d + ff74328 commit bb6b434

36 files changed

+97
-170
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@
55
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/883)
66

77
### Client
8+
- Fix: パスキーでパスワードレスログインが出来ない問題を修正
89
- Fix: 一部環境でセンシティブなファイルを含むノートの非表示が効かない問題
910
- Fix: データセーバー有効時にもユーザーページの「ファイル」タブで画像が読み込まれてしまう問題を修正
1011
- Fix: MFMの `sparkle` エフェクトが正しく表示されない問題を修正
12+
- Fix: ページのURLにスラッシュが含まれている場合にページが正しく表示されない問題を修正
13+
- Fix: デッキのプロファイルが新規作成できない問題を修正
14+
- Fix: セキュリティに関する修正
1115
- ローカライゼーションの更新
16+
- Playが実装されたため、ページ機能の「ソースを見る」は削除されました
1217

1318
### Server
19+
- Enhance: ページのURLに使用可能な文字を限定するように
1420
- Fix: 個別お知らせページのmetaタグ出力の条件が間違っていたのを修正
1521

16-
1722
## 2025.1.0
1823

1924
### Note

locales/ar-SA.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1460,9 +1460,6 @@ _pages:
14601460
newPage: "أنشئ صفحة جديدة"
14611461
editPage: "عدّل الصفحة"
14621462
readPage: "نُشّط عرض المصدر"
1463-
created: "نجح إنشاء الصفحة"
1464-
updated: "نجح تعديل الصفحة"
1465-
deleted: "نجح حذف الصفحة"
14661463
pageSetting: "إعدادات الصفحة"
14671464
nameAlreadyExists: "رابط الصفحة موجود مسبقًا"
14681465
invalidNameTitle: "رابط الصفحة ليس صالحًا"

locales/bn-BD.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1237,9 +1237,6 @@ _pages:
12371237
newPage: "নতুন পৃষ্ঠা বানান"
12381238
editPage: "পৃষ্ঠাটি সম্পাদনা করুন"
12391239
readPage: "উৎস দেখছেন"
1240-
created: "পৃষ্ঠা তৈরি করা হয়েছে"
1241-
updated: "পৃষ্ঠা সম্পাদনা করা হয়েছে"
1242-
deleted: "পৃষ্ঠা মুছে ফেলা হয়েছে"
12431240
pageSetting: "পৃষ্ঠার সেটিংস"
12441241
nameAlreadyExists: "পৃষ্ঠার URLটি ইতিমধ্যেই ব্যাবহার করা হয়েছে"
12451242
invalidNameTitle: "পৃষ্ঠার URL অবৈধ"

locales/ca-ES.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2365,9 +2365,6 @@ _pages:
23652365
newPage: "pa"
23662366
editPage: "Editar la pàgina"
23672367
readPage: "Veure el codi font d'aquesta pàgina"
2368-
created: "La pàgina ha sigut creada correctament"
2369-
updated: "La pàgina s'ha editat correctament"
2370-
deleted: "La pàgina s'ha esborrat sense problemes"
23712368
pageSetting: "Configuració de la pàgina"
23722369
nameAlreadyExists: "L'adreça URL de la pàgina ja existeix"
23732370
invalidNameTitle: "L'adreça URL de la pàgina no és vàlida"

locales/cs-CZ.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1883,9 +1883,6 @@ _pages:
18831883
newPage: "Vytvořit novou stránku"
18841884
editPage: "Upravit stránku"
18851885
readPage: "Prohlížení zdroje této stránky"
1886-
created: "Stránka byla úspěšně vytvořena"
1887-
updated: "Stránka byla úspěšně aktualizována"
1888-
deleted: "Stránka byla úspěšně smazána"
18891886
pageSetting: "Nastavení stránky"
18901887
nameAlreadyExists: "Zadaná adresa URL stránky již existuje"
18911888
invalidNameTitle: "Zadaná adresa URL stránky je neplatná"

locales/de-DE.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2277,9 +2277,6 @@ _pages:
22772277
newPage: "Seite erstellen"
22782278
editPage: "Seite bearbeiten"
22792279
readPage: "Quelltextansicht"
2280-
created: "Seite erfolgreich erstellt"
2281-
updated: "Seite erfolgreich aktualisiert"
2282-
deleted: "Seite erfolgreich gelöscht"
22832280
pageSetting: "Seiteneinstellungen"
22842281
nameAlreadyExists: "Die angegebene Seiten-URL existiert bereits"
22852282
invalidNameTitle: "Die angegebene Seiten-URL ist ungültig"

locales/en-US.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -2369,9 +2369,6 @@ _pages:
23692369
newPage: "Create a new Page"
23702370
editPage: "Edit this Page"
23712371
readPage: "Viewing this Page's source"
2372-
created: "Page successfully created"
2373-
updated: "Page successfully edited"
2374-
deleted: "Page successfully deleted"
23752372
pageSetting: "Page settings"
23762373
nameAlreadyExists: "The specified Page URL already exists"
23772374
invalidNameTitle: "The specified Page URL is invalid"
@@ -2779,6 +2776,7 @@ _customEmojisManager:
27792776
confirmUpdateEmojisDescription: "Update {count} Emoji(s). Are you sure to continue?"
27802777
confirmDeleteEmojisDescription: "Delete checked {count} Emoji(s). Are you sure to continue?"
27812778
confirmResetDescription: ""
2779+
confirmMovePageDesciption: "Changes have been made to the Emojis on this page.\nIf you leave the page without saving, all changes made on this page will be discarded."
27822780
dialogSelectRoleTitle: "Search by roll set in Emojis"
27832781
_register:
27842782
uploadSettingTitle: "Upload settings"

locales/es-ES.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2294,9 +2294,6 @@ _pages:
22942294
newPage: "Crear página"
22952295
editPage: "Editar página"
22962296
readPage: "Viendo la fuente"
2297-
created: "La página fue creada"
2298-
updated: "La página fue actualizada"
2299-
deleted: "La página borrada"
23002297
pageSetting: "Configurar página"
23012298
nameAlreadyExists: "La URL de la página especificada ya existe"
23022299
invalidNameTitle: "URL inválida"

locales/fr-FR.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2118,9 +2118,6 @@ _pages:
21182118
newPage: "Créer une page"
21192119
editPage: "Modifier une page"
21202120
readPage: "Affichage de la source en cours"
2121-
created: "La page a été créée !"
2122-
updated: "La page a été mise à jour !"
2123-
deleted: "La page a été supprimée"
21242121
pageSetting: "Paramètres de la Page"
21252122
nameAlreadyExists: "L'URL de page spécifiée existe déjà"
21262123
invalidNameTitle: "L'URL de page spécifiée n’est pas valide"

locales/id-ID.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2285,9 +2285,6 @@ _pages:
22852285
newPage: "Buat halaman baru"
22862286
editPage: "Sunting halaman"
22872287
readPage: "Lihat sumber kode aktif"
2288-
created: "Halaman berhasil dibuat"
2289-
updated: "Halaman berhasil diperbaharui!"
2290-
deleted: "Halaman telah dihapus"
22912288
pageSetting: "Pengaturan Halaman"
22922289
nameAlreadyExists: "URL Halaman yang ditentukan sudah ada"
22932290
invalidNameTitle: "URL Halaman yang ditentukan tidak valid"

locales/index.d.ts

+1-13
Original file line numberDiff line numberDiff line change
@@ -4339,7 +4339,7 @@ export interface Locale extends ILocale {
43394339
*/
43404340
"invalidParamError": string;
43414341
/**
4342-
* リクエストパラメータに問題があります。通常これはバグですが、入力した文字数が多すぎる等の可能性もあります
4342+
* リクエストパラメータに問題があります。通常これはバグですが、入力した文字数が多すぎる・許可されていない文字を入力している等の可能性もあります
43434343
*/
43444344
"invalidParamErrorDescription": string;
43454345
/**
@@ -9748,18 +9748,6 @@ export interface Locale extends ILocale {
97489748
* ソースを表示中
97499749
*/
97509750
"readPage": string;
9751-
/**
9752-
* ページを作成しました
9753-
*/
9754-
"created": string;
9755-
/**
9756-
* ページを更新しました
9757-
*/
9758-
"updated": string;
9759-
/**
9760-
* ページを削除しました
9761-
*/
9762-
"deleted": string;
97639751
/**
97649752
* ページ設定
97659753
*/

locales/it-IT.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2365,9 +2365,6 @@ _pages:
23652365
newPage: "Crea pagina"
23662366
editPage: "Modifica pagina"
23672367
readPage: "Visualizzando fonte "
2368-
created: "Pagina creata!"
2369-
updated: "Pagina aggiornata con successo!"
2370-
deleted: "Pagina eliminata"
23712368
pageSetting: "Impostazioni pagina"
23722369
nameAlreadyExists: "Esiste già una pagina con lo stesso URL."
23732370
invalidNameTitle: "L'URL di pagina definito non è valido"

locales/ja-JP.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ youCannotCreateAnymore: "これ以上作成することはできません。"
10801080
cannotPerformTemporary: "一時的に利用できません"
10811081
cannotPerformTemporaryDescription: "操作回数が制限を超過するため一時的に利用できません。しばらく時間を置いてから再度お試しください。"
10821082
invalidParamError: "パラメータエラー"
1083-
invalidParamErrorDescription: "リクエストパラメータに問題があります。通常これはバグですが、入力した文字数が多すぎる等の可能性もあります"
1083+
invalidParamErrorDescription: "リクエストパラメータに問題があります。通常これはバグですが、入力した文字数が多すぎる・許可されていない文字を入力している等の可能性もあります"
10841084
permissionDeniedError: "操作が拒否されました"
10851085
permissionDeniedErrorDescription: "このアカウントにはこの操作を行うための権限がありません。"
10861086
preset: "プリセット"
@@ -2573,9 +2573,6 @@ _pages:
25732573
newPage: "ページの作成"
25742574
editPage: "ページの編集"
25752575
readPage: "ソースを表示中"
2576-
created: "ページを作成しました"
2577-
updated: "ページを更新しました"
2578-
deleted: "ページを削除しました"
25792576
pageSetting: "ページ設定"
25802577
nameAlreadyExists: "指定されたページURLは既に存在しています"
25812578
invalidNameTitle: "不正なページURLです"

locales/ja-KS.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2357,9 +2357,6 @@ _pages:
23572357
newPage: "ページを作る"
23582358
editPage: "ページの編集"
23592359
readPage: "ソースを表示中"
2360-
created: "ページを作成したで"
2361-
updated: "ページを更新したで"
2362-
deleted: "ページを削除したで"
23632360
pageSetting: "ページ設定"
23642361
nameAlreadyExists: "指定されたページURLはもうあるみたいや"
23652362
invalidNameTitle: "正しくないページURLみたいやで"

locales/ko-KR.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2365,9 +2365,6 @@ _pages:
23652365
newPage: "페이지 만들기"
23662366
editPage: "페이지 수정"
23672367
readPage: "소스 표시 중"
2368-
created: "페이지를 만들었습니다"
2369-
updated: "페이지를 수정했습니다"
2370-
deleted: "페이지가 삭제되었습니다"
23712368
pageSetting: "페이지 설정"
23722369
nameAlreadyExists: "지정한 페이지 URL이 이미 존재합니다"
23732370
invalidNameTitle: "유효하지 않은 페이지 URL입니다"

locales/pl-PL.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1459,9 +1459,6 @@ _pages:
14591459
newPage: "Utwórz stronę"
14601460
editPage: "Edytuj tę stronę"
14611461
readPage: "Aktywowano widok źródła"
1462-
created: "Pomyślnie utworzono stronę!"
1463-
updated: "Pomyślnie zaktualizowano stronę!"
1464-
deleted: "Strona została usunięta"
14651462
pageSetting: "Ustawienia strony"
14661463
nameAlreadyExists: "Określony adres URL strony już istnieje"
14671464
invalidNameTitle: "Podany adres URL strony jest nieprawidłowy"

locales/pt-PT.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2357,9 +2357,6 @@ _pages:
23572357
newPage: "Criar uma Página"
23582358
editPage: "Editar essa Página"
23592359
readPage: "Ver a fonte dessa Página"
2360-
created: "Página criada com sucesso"
2361-
updated: "Página atualizada com sucesso"
2362-
deleted: "Página excluída com sucesso"
23632360
pageSetting: "Configurações da página"
23642361
nameAlreadyExists: "O URL de Página especificado já existe"
23652362
invalidNameTitle: "O URL de Página especificado é inválido"

locales/ru-RU.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1976,9 +1976,6 @@ _pages:
19761976
newPage: "Создать страницу"
19771977
editPage: "Править страницу"
19781978
readPage: "Читать страницу"
1979-
created: "Страница успешно создана."
1980-
updated: "Страница успешно обновлена."
1981-
deleted: "Страница успешно удалена."
19821979
pageSetting: "Настройки страницы"
19831980
nameAlreadyExists: "Указанный адрес страницы уже существует."
19841981
invalidNameTitle: "Указанный адрес страницы недопустим."

locales/sk-SK.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1332,9 +1332,6 @@ _pages:
13321332
newPage: "Vytvoriť novú stránku"
13331333
editPage: "Upraviť túto stránku"
13341334
readPage: "Zobrazenie zdroja aktívne"
1335-
created: "Stránka úspešne vytvorená"
1336-
updated: "Stránka úspešne upravená"
1337-
deleted: "Stránka úspešne odstránená"
13381335
pageSetting: "Nastavenia stránky"
13391336
nameAlreadyExists: "Zadaná URL stránku už existuje"
13401337
invalidNameTitle: "Zadaná URL stránku je nesprávna"

locales/th-TH.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2331,9 +2331,6 @@ _pages:
23312331
newPage: "สร้างหน้าเพจใหม่"
23322332
editPage: "แก้ไขหน้าเพจ"
23332333
readPage: "กำลังดูแหล่งที่มาของเพจนี้"
2334-
created: "สร้างหน้าเพจสำเร็จเรียบร้อยแล้ว"
2335-
updated: "แก้ไขหน้าเพจสำเร็จเรียบร้อยแล้ว"
2336-
deleted: "ลบหน้าเพจสำเร็จเรียบร้อยแล้ว"
23372334
pageSetting: "การตั้งค่าหน้าเพจ"
23382335
nameAlreadyExists: "URL ของหน้าที่ระบุนั้นมีอยู่แล้ว"
23392336
invalidNameTitle: "URL ของหน้าที่ระบุนั้นไม่ถูกต้อง"

locales/uk-UA.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1513,9 +1513,6 @@ _pages:
15131513
newPage: "Створити сторінку"
15141514
editPage: "Редагувати сторінку"
15151515
readPage: "Перегляд вихідного коду"
1516-
created: "Сторінка успішно створена."
1517-
updated: "Сторінка успішно оновлена."
1518-
deleted: "Сторінку видалено"
15191516
pageSetting: "Налаштування сторінки"
15201517
nameAlreadyExists: "Вказана адреса сторінки вже існує."
15211518
invalidNameTitle: "Вказана адреса сторінки неприпустима."

locales/uz-UZ.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1004,9 +1004,6 @@ _play:
10041004
_pages:
10051005
newPage: "Yangi Sahifa yaratish"
10061006
editPage: "Ushbu Sahifani tahrirlash"
1007-
created: "Sahifa muvaffaqiyatli yaratildi"
1008-
updated: "Sahifa muvaffaqiyatli tahrirlandi"
1009-
deleted: "Sahifa muvaffaqiyatli o'chirildi"
10101007
pageSetting: "Sahifa sozlamalari"
10111008
nameAlreadyExists: "Ko'rsatilgan Sahifa URL'i allaqachon mavjud"
10121009
invalidNameTitle: "Ko'rsatilgan Sahifa URL'i yaroqsiz"

locales/vi-VN.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1802,9 +1802,6 @@ _pages:
18021802
newPage: "Tạo Trang mới"
18031803
editPage: "Sửa Trang này"
18041804
readPage: "Xem mã nguồn Trang này"
1805-
created: "Trang đã được tạo thành công"
1806-
updated: "Trang đã được cập nhật thành công"
1807-
deleted: "Trang đã được xóa thành công"
18081805
pageSetting: "Cài đặt trang"
18091806
nameAlreadyExists: "URL Trang đã tồn tại"
18101807
invalidNameTitle: "URL Trang không hợp lệ"

locales/zh-CN.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2365,9 +2365,6 @@ _pages:
23652365
newPage: "创建页面"
23662366
editPage: "编辑页面"
23672367
readPage: "查看页面"
2368-
created: "页面已创建"
2369-
updated: "页面已更新"
2370-
deleted: "该页面已被删除"
23712368
pageSetting: "页面设置"
23722369
nameAlreadyExists: "该页面 URL 已存在"
23732370
invalidNameTitle: "无效的页面 URL"

locales/zh-TW.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2365,9 +2365,6 @@ _pages:
23652365
newPage: "建立頁面"
23662366
editPage: "編輯頁面"
23672367
readPage: "正在檢視原始碼"
2368-
created: "頁面已建立"
2369-
updated: "頁面已更新"
2370-
deleted: "頁面已被刪除"
23712368
pageSetting: "頁面設定"
23722369
nameAlreadyExists: "該頁面 URL 已存在"
23732370
invalidNameTitle: "無效的頁面 URL"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "misskey",
3-
"version": "2025.1.0-kakurega.1.40.1",
3+
"version": "2025.2.0-kakurega.1.40.1",
44
"codename": "nasubi",
55
"repository": {
66
"type": "git",

packages/backend/src/models/Page.ts

+2
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,5 @@ export class MiPage {
118118
}
119119
}
120120
}
121+
122+
export const pageNameSchema = { type: 'string', pattern: /^[^\s:\/?#\[\]@!$&'()*+,;=\\%\x00-\x20]{1,256}$/.source } as const;

packages/backend/src/server/api/endpoints/pages/create.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import ms from 'ms';
77
import { Inject, Injectable } from '@nestjs/common';
88
import type { DriveFilesRepository, PagesRepository } from '@/models/_.js';
99
import { IdService } from '@/core/IdService.js';
10-
import { MiPage } from '@/models/Page.js';
10+
import { MiPage, pageNameSchema } from '@/models/Page.js';
1111
import { Endpoint } from '@/server/api/endpoint-base.js';
1212
import { PageEntityService } from '@/core/entities/PageEntityService.js';
1313
import { DI } from '@/di-symbols.js';
@@ -51,7 +51,7 @@ export const paramDef = {
5151
type: 'object',
5252
properties: {
5353
title: { type: 'string' },
54-
name: { type: 'string', minLength: 1 },
54+
name: { ...pageNameSchema, minLength: 1 },
5555
summary: { type: 'string', nullable: true },
5656
content: { type: 'array', items: {
5757
type: 'object', additionalProperties: true,

packages/backend/src/server/api/endpoints/pages/update.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import type { PagesRepository, DriveFilesRepository } from '@/models/_.js';
1010
import { Endpoint } from '@/server/api/endpoint-base.js';
1111
import { DI } from '@/di-symbols.js';
1212
import { ApiError } from '../../error.js';
13+
import { pageNameSchema } from '@/models/Page.js';
1314

1415
export const meta = {
1516
tags: ['pages'],
@@ -31,13 +32,11 @@ export const meta = {
3132
code: 'NO_SUCH_PAGE',
3233
id: '21149b9e-3616-4778-9592-c4ce89f5a864',
3334
},
34-
3535
accessDenied: {
3636
message: 'Access denied.',
3737
code: 'ACCESS_DENIED',
3838
id: '3c15cd52-3b4b-4274-967d-6456fc4f792b',
3939
},
40-
4140
noSuchFile: {
4241
message: 'No such file.',
4342
code: 'NO_SUCH_FILE',
@@ -56,7 +55,7 @@ export const paramDef = {
5655
properties: {
5756
pageId: { type: 'string', format: 'misskey:id' },
5857
title: { type: 'string' },
59-
name: { type: 'string', minLength: 1 },
58+
name: { ...pageNameSchema, minLength: 1 },
6059
summary: { type: 'string', nullable: true },
6160
content: { type: 'array', items: {
6261
type: 'object', additionalProperties: true,

packages/frontend/src/components/MkSignin.vue

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ function onPasskeyDone(credential: AuthenticationPublicKeyCredential): void {
140140
return;
141141
}
142142
emit('login', res.signinResponse);
143+
onLoginSucceeded(res.signinResponse);
143144
}).catch(onSigninApiError);
144145
} else if (userInfo.value != null) {
145146
tryLogin({

0 commit comments

Comments
 (0)