Skip to content

Commit

Permalink
Merge pull request misskey-dev#296 from taiyme/merge-upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyme authored Oct 16, 2024
2 parents 44f48d3 + 50c2de0 commit 1de1f5a
Show file tree
Hide file tree
Showing 436 changed files with 6,509 additions and 1,976 deletions.
1 change: 1 addition & 0 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ packages/backend:test:
- changed-files:
- any-glob-to-any-file:
- packages/backend/test/**/*
- packages/backend/test-federation/**/*

packages/frontend:
- any:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-misskey-js-autogen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:
- release
paths:
- .github/workflows/check-misskey-js-autogen.yaml
- packages/backend/**
- packages/backend/**/*

pull_request_target:
branches:
- taiyme
- release
paths:
- packages/backend/**
- packages/backend/**/*

permissions:
contents: read
Expand Down
29 changes: 20 additions & 9 deletions .github/workflows/check-spdx-license-id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,26 @@ jobs:
search() {
local directory="$1"
if [[ ! -d "$directory" ]]; then
return 0
fi
find "$directory" -type f \
'(' \
-name '*.cjs' -and -not -name '*.config.cjs' -o \
-name '*.html' -o \
-name '*.js' -and -not -name '*.config.js' -o \
-name '*.mjs' -and -not -name '*.config.mjs' -o \
-name '*.scss' -o \
-name '*.ts' -and -not -name '*.config.ts' -o \
\( \
-name '*.html' -or \
-name '*.scss' -or \
-name '*.css' -or \
-name '*.vue' \
')' -and \
-not -name '*eslint*'
\) -or \
\( \
\( \
-name '*.ts' -or \
-name '*.js' -or \
-name '*.mjs' -or \
-name '*.cjs' \
\) -and \( \
-not -name '*.config.*' \
\) \
\)
}
check() {
Expand All @@ -76,6 +85,8 @@ jobs:
'packages/backend/migration'
'packages/backend/src'
'packages/backend/test'
'packages/backend/test-federation'
'packages/backend/test-server'
'packages/frontend/.storybook'
'packages/frontend/@types'
'packages/frontend/lib'
Expand Down
81 changes: 81 additions & 0 deletions .github/workflows/test-federation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Test (federation)

on:
push:
branches:
- taiyme
- release
paths:
- .github/workflows/test-federation.yaml
- packages/backend/**/*
- packages/misskey-js/**/*

pull_request_target:
branches:
- taiyme
- release
paths:
- packages/backend/**/*
- packages/misskey-js/**/*

jobs:
pre-checkout:
name: Pre checkout
uses: ./.github/workflows/pre-checkout.yaml

test-federation:
name: Test federation
runs-on: ubuntu-22.04
needs:
- pre-checkout
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
ref: ${{ needs.pre-checkout.outputs.sha }}
fetch-depth: 1
submodules: true

- name: Enable corepack
run: |
corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version-file: .node-version
cache: pnpm

- name: Setup FFmpeg
uses: federicocarboni/setup-ffmpeg@37062fbf7149fc5578d6c57e08aed62458b375d6 # v3.1

- name: Install dependencies
run: |
pnpm i --frozen-lockfile
- name: Build
run: |
pnpm build
- name: Setup
working-directory: packages/backend/test-federation
run: |
bash ./setup.sh
sudo chmod 644 ./certificates/*.test.key
- name: Start servers
working-directory: packages/backend/test-federation
# https://github.com/docker/compose/issues/1294#issuecomment-374847206
run: |
docker compose up -d --scale tester=0
- name: Test
working-directory: packages/backend/test-federation
run: |
docker compose run --no-deps tester
- name: Stop servers
working-directory: packages/backend/test-federation
run: |
docker compose down
14 changes: 6 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ coverage
!/.config/docker_example.yml
!/.config/docker_example.env
!/.config/cypress-devcontainer.yml
compose.yaml
compose.yml
docker-compose.yaml
docker-compose.yml
!/.devcontainer/compose.yaml
!/.devcontainer/compose.yml
!/.devcontainer/docker-compose.yaml
!/.devcontainer/docker-compose.yml

# docker
/compose.yaml
/compose.yml
/docker-compose.yaml
/docker-compose.yml

# misskey
/build
Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,29 @@
-


## 2024.10.1

### Note
- スパム対策として、モデレータ権限を持つユーザのアクティビティが7日以上確認できない場合は自動的に招待制へと切り替え(コントロールパネル -> モデレーション -> "誰でも新規登録できるようにする"をオフに変更)るようになりました。 ( #13437 )
- 切り替わった際はモデレーターへお知らせとして通知されます。登録をオープンな状態で継続したい場合は、コントロールパネルから再度設定を行ってください。

### General
- Feat: ユーザーの名前に禁止ワードを設定できるように

### Client
- Enhance: タイムライン表示時のパフォーマンスを向上
- Enhance: アーカイブした個人宛のお知らせを表示・編集できるように
- Enhance: l10nの更新
- Fix: メールアドレス不要でCaptchaが有効な場合にアカウント登録完了後自動でのログインに失敗する問題を修正

### Server
- Feat: モデレータ権限を持つユーザが全員7日間活動しなかった場合は自動的に招待制へと切り替えるように ( #13437 )
- Enhance: 個人宛のお知らせは「わかった」を押すと自動的にアーカイブされるように
- Fix: `admin/emoji/update`エンドポイントのidのみ指定した時不正なエラーが発生するバグを修正
- Fix: RBT有効時、リノートのリアクションが反映されない問題を修正
- Fix: キューのエラーログを簡略化するように
(Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/649)

## 2024.10.0

### Note
Expand Down
2 changes: 1 addition & 1 deletion idea/MkDisableSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defineProps<{
transparent 0px 10px,
var(--c) 6px 16px
);
--c: color(from var(--error) srgb r g b / 0.25);
--c: color(from var(--MI_THEME-error) srgb r g b / 0.25);

// NOTE: iOS/iPadOS環境でクラッシュする https://github.com/taiyme/misskey/issues/293
html[data-browser-engine=webkit] & {
Expand Down
1 change: 0 additions & 1 deletion locales/ar-SA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,6 @@ _theme:
buttonBg: "خلفية الأزرار"
buttonHoverBg: "خلفية الأزرار (عند التمرير فوقها)"
inputBorder: "حواف حقل الإدخال"
listItemHoverBg: "خلفية عناصر القائمة (عند التمرير فوقها)"
driveFolderBg: "خلفية مجلد قرص التخزين"
messageBg: "خلفية المحادثة"
_sfx:
Expand Down
1 change: 0 additions & 1 deletion locales/bn-BD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,6 @@ _theme:
buttonBg: "বাটনের পটভূমি"
buttonHoverBg: "বাটনের পটভূমি (হভার)"
inputBorder: "ইনপুট ফিল্ডের বর্ডার"
listItemHoverBg: "লিস্ট আইটেমের পটভূমি (হোভার)"
driveFolderBg: "ড্রাইভ ফোল্ডারের পটভূমি"
wallpaperOverlay: "ওয়ালপেপার ওভারলে"
badge: "ব্যাজ"
Expand Down
14 changes: 13 additions & 1 deletion locales/ca-ES.yml
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ totpDescription: "Escriu una contrasenya d'un sol us fent servir l'aplicació d'
moderator: "Moderador/a"
moderation: "Moderació"
moderationNote: "Nota de moderació "
moderationNoteDescription: "Pots escriure notes que es compartiran entre els moderadors."
addModerationNote: "Afegir una nota de moderació "
moderationLogs: "Registre de moderació "
nUsersMentioned: "{n} usuaris mencionats"
Expand Down Expand Up @@ -1284,6 +1285,15 @@ unknownWebAuthnKey: "Passkey desconeguda"
passkeyVerificationFailed: "La verificació a fallat"
passkeyVerificationSucceededButPasswordlessLoginDisabled: "La verificació de la passkey a estat correcta, però s'ha deshabilitat l'inici de sessió sense contrasenya."
messageToFollower: "Missatge als meus seguidors"
target: "Assumpte "
testCaptchaWarning: "És una característica dissenyada per a la prova de CAPTCHA. <strong>No l'utilitzes en l'entorn real.</strong>"
_abuseUserReport:
forward: "Reenviar "
forwardDescription: "Reenvia l'informe a una altra instància com un compte del sistema anònima."
resolve: "Solució "
accept: "Acceptar "
reject: "Rebutjar"
resolveTutorial: "Si l'informe és legítim selecciona \"Acceptar\" per resoldre'l positivament. Però si l'informe no és legítim selecciona \"Rebutjar\" per resoldre'l negativament."
_delivery:
status: "Estat d'entrega "
stop: "Suspés"
Expand Down Expand Up @@ -1421,6 +1431,7 @@ _serverSettings:
reactionsBufferingDescription: "Quan s'activa aquesta opció millora bastant el rendiment en recuperar les línies de temps reduint la càrrega de la base. Com a contrapunt, augmentarà l'ús de memòria de Redís. Desactiva aquesta opció en cas de tenir un servidor amb poca memòria o si tens problemes d'inestabilitat."
inquiryUrl: "URL de consulta "
inquiryUrlDescription: "Escriu adreça URL per al formulari de consulta per al mantenidor del servidor o una pàgina web amb el contacte d'informació."
thisSettingWillAutomaticallyOffWhenModeratorsInactive: "Si no es detecta activitat per part del moderador durant un període de temps, aquesta opció es desactiva automàticament per evitar el correu brossa."
_accountMigration:
moveFrom: "Migrar un altre compte a aquest"
moveFromSub: "Crear un àlies per un altre compte"
Expand Down Expand Up @@ -1974,7 +1985,6 @@ _theme:
buttonBg: "Fons botó "
buttonHoverBg: "Fons botó (en passar-hi per sobre)"
inputBorder: "Contorn del cap d'introducció "
listItemHoverBg: "Fons dels elements d'una llista"
driveFolderBg: "Fons de la carpeta Disc"
wallpaperOverlay: "Superposició del fons de pantalla "
badge: "Insígnia "
Expand Down Expand Up @@ -2520,6 +2530,8 @@ _moderationLogTypes:
markSensitiveDriveFile: "Fitxer marcat com a sensible"
unmarkSensitiveDriveFile: "S'ha tret la marca de sensible del fitxer"
resolveAbuseReport: "Informe resolt"
forwardAbuseReport: "Informe reenviat"
updateAbuseReportNote: "Nota de moderació d'un informe actualitzat"
createInvitation: "Crear codi d'invitació "
createAd: "Anunci creat"
deleteAd: "Anunci esborrat"
Expand Down
1 change: 0 additions & 1 deletion locales/cs-CZ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,6 @@ _theme:
buttonBg: "Pozadí tlačítka"
buttonHoverBg: "Pozadí tlačítka (Hover)"
inputBorder: "Ohraničení vstupního pole"
listItemHoverBg: "Pozadí položky seznamu (Hover)"
driveFolderBg: "Pozadí složky disku"
wallpaperOverlay: "Překrytí tapety"
badge: "Odznak"
Expand Down
1 change: 0 additions & 1 deletion locales/de-DE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1784,7 +1784,6 @@ _theme:
buttonBg: "Hintergrund von Schaltflächen"
buttonHoverBg: "Hintergrund von Schaltflächen (Mouseover)"
inputBorder: "Rahmen von Eingabefeldern"
listItemHoverBg: "Hintergrund von Listeneinträgen (Mouseover)"
driveFolderBg: "Hintergrund von Drive-Ordnern"
wallpaperOverlay: "Hintergrundbild-Overlay"
badge: "Wappen"
Expand Down
1 change: 0 additions & 1 deletion locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1984,7 +1984,6 @@ _theme:
buttonBg: "Button background"
buttonHoverBg: "Button background (Hover)"
inputBorder: "Input field border"
listItemHoverBg: "List item background (Hover)"
driveFolderBg: "Drive folder background"
wallpaperOverlay: "Wallpaper overlay"
badge: "Badge"
Expand Down
1 change: 0 additions & 1 deletion locales/es-ES.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,6 @@ _theme:
buttonBg: "Fondo de botón"
buttonHoverBg: "Fondo de botón (hover)"
inputBorder: "Borde de los campos de entrada"
listItemHoverBg: "Fondo de elemento de listas (hover)"
driveFolderBg: "Fondo de capeta del drive"
wallpaperOverlay: "Transparencia del fondo de pantalla"
badge: "Medalla"
Expand Down
1 change: 0 additions & 1 deletion locales/fr-FR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,6 @@ _theme:
buttonBg: "Arrière-plan du bouton"
buttonHoverBg: "Arrière-plan du bouton (survolé)"
inputBorder: "Cadre de la zone de texte"
listItemHoverBg: "Arrière-plan d'item de liste (survolé)"
driveFolderBg: "Arrière-plan du dossier de disque"
wallpaperOverlay: "Superposition de fond d'écran"
badge: "Badge"
Expand Down
1 change: 0 additions & 1 deletion locales/id-ID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1924,7 +1924,6 @@ _theme:
buttonBg: "Latar belakang tombol"
buttonHoverBg: "Latar belakang tombol (Mengambang)"
inputBorder: "Batas bidang masukan"
listItemHoverBg: "Latar belakang daftar item (Mengambang)"
driveFolderBg: "Latar belakang folder drive"
wallpaperOverlay: "Lapisan wallpaper"
badge: "Lencana"
Expand Down
40 changes: 36 additions & 4 deletions locales/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4366,6 +4366,10 @@ export interface Locale extends ILocale {
* リモートサーバーのチャートを生成
*/
readonly "enableChartsForFederatedInstances": string;
/**
* リモートサーバーの情報を取得
*/
readonly "enableStatsForFederatedInstances": string;
/**
* ノートのアクションにクリップを追加
*/
Expand Down Expand Up @@ -5166,6 +5170,26 @@ export interface Locale extends ILocale {
* 対象
*/
readonly "target": string;
/**
* CAPTCHAのテストを目的とした機能です。<strong>本番環境で使用しないでください。</strong>
*/
readonly "testCaptchaWarning": string;
/**
* 禁止ワード(ユーザーの名前)
*/
readonly "prohibitedWordsForNameOfUser": string;
/**
* このリストに含まれる文字列がユーザーの名前に含まれる場合、ユーザーの名前の変更を拒否します。モデレーター権限を持つユーザーはこの制限の影響を受けません。
*/
readonly "prohibitedWordsForNameOfUserDescription": string;
/**
* 変更しようとした名前に禁止された文字列が含まれています
*/
readonly "yourNameContainsProhibitedWords": string;
/**
* 名前に禁止されている文字列が含まれています。この名前を使用したい場合は、サーバー管理者にお問い合わせください。
*/
readonly "yourNameContainsProhibitedWordsDescription": string;
readonly "_abuseUserReport": {
/**
* 転送
Expand Down Expand Up @@ -5696,6 +5720,10 @@ export interface Locale extends ILocale {
* サーバー運営者へのお問い合わせフォームのURLや、運営者の連絡先等が記載されたWebページのURLを指定します。
*/
readonly "inquiryUrlDescription": string;
/**
* 一定期間モデレーターのアクティビティが検出されなかった場合、スパム防止のためこの設定は自動でオフになります。
*/
readonly "thisSettingWillAutomaticallyOffWhenModeratorsInactive": string;
};
readonly "_accountMigration": {
/**
Expand Down Expand Up @@ -7705,10 +7733,6 @@ export interface Locale extends ILocale {
* 入力ボックスの縁取り
*/
readonly "inputBorder": string;
/**
* リスト項目の背景 (ホバー)
*/
readonly "listItemHoverBg": string;
/**
* ドライブフォルダーの背景
*/
Expand Down Expand Up @@ -9637,6 +9661,14 @@ export interface Locale extends ILocale {
* ユーザーが作成されたとき
*/
readonly "userCreated": string;
/**
* モデレーターが一定期間非アクティブになったとき
*/
readonly "inactiveModeratorsWarning": string;
/**
* モデレーターが一定期間非アクティブだったため、システムにより招待制へと変更されたとき
*/
readonly "inactiveModeratorsInvitationOnlyChanged": string;
};
/**
* Webhookを削除しますか?
Expand Down
Loading

0 comments on commit 1de1f5a

Please sign in to comment.