From 43fe0cfda856289e65330a9dd0f6d2bd2d57dd31 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Oct 2023 19:03:01 +0900 Subject: [PATCH 1/5] Update CHANGELOG.md --- CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index abb9ca8909..d8714599f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,8 +15,7 @@ ## 2023.10.0 ### NOTE - 2023.9.2で導入されたノート編集機能はクオリティの高い実装が困難であることが判明したため撤回されました -- アップデート後、アップデートより前の時点にTLを遡ることはできません - - アップデート後であっても、今後のアップデートで2023.10.0以前のTLに遡れるようになる可能性はあります +- アップデートを行うと、タイムラインが一時的にリセットされます ### Changes - API: users/notes, notes/local-timeline で fileType 指定はできなくなりました From 61ff98c8ddcd5fdad8cb127302d8e4a2b92291cf Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Oct 2023 19:03:21 +0900 Subject: [PATCH 2/5] New Crowdin updates (#12000) * New translations ja-jp.yml (French) * New translations ja-jp.yml (Italian) * New translations ja-jp.yml (Spanish) * New translations ja-jp.yml (Czech) * New translations ja-jp.yml (German) * New translations ja-jp.yml (Korean) * New translations ja-jp.yml (Polish) * New translations ja-jp.yml (Russian) * New translations ja-jp.yml (Slovak) * New translations ja-jp.yml (Ukrainian) * New translations ja-jp.yml (Chinese Simplified) * New translations ja-jp.yml (Chinese Traditional) * New translations ja-jp.yml (English) * New translations ja-jp.yml (Vietnamese) * New translations ja-jp.yml (Indonesian) * New translations ja-jp.yml (Bengali) * New translations ja-jp.yml (Thai) * New translations ja-jp.yml (Japanese, Kansai) --- locales/bn-BD.yml | 3 --- locales/cs-CZ.yml | 3 --- locales/de-DE.yml | 3 --- locales/en-US.yml | 3 --- locales/es-ES.yml | 3 --- locales/fr-FR.yml | 3 --- locales/id-ID.yml | 3 --- locales/it-IT.yml | 3 --- locales/ja-KS.yml | 3 --- locales/ko-KR.yml | 3 --- locales/pl-PL.yml | 3 --- locales/ru-RU.yml | 3 --- locales/sk-SK.yml | 3 --- locales/th-TH.yml | 3 --- locales/uk-UA.yml | 3 --- locales/vi-VN.yml | 3 --- locales/zh-CN.yml | 3 --- locales/zh-TW.yml | 3 --- 18 files changed, 54 deletions(-) diff --git a/locales/bn-BD.yml b/locales/bn-BD.yml index 6d6771ac0f..4baa3d672e 100644 --- a/locales/bn-BD.yml +++ b/locales/bn-BD.yml @@ -995,9 +995,6 @@ _theme: infoFg: "তথ্যের পাঠ্য" infoWarnBg: "ওয়ার্নিং এর পটভূমি" infoWarnFg: "ওয়ার্নিং এর পাঠ্য" - cwBg: "CW বাটনের পটভূমি" - cwFg: "CW বাটনের পাঠ্য" - cwHoverBg: "CW বাটনের পটভূমি (হভার)" toastBg: "বিজ্ঞপ্তির পটভূমি" toastFg: "বিজ্ঞপ্তির পাঠ্য" buttonBg: "বাটনের পটভূমি" diff --git a/locales/cs-CZ.yml b/locales/cs-CZ.yml index db9105a13a..6bd21de93a 100644 --- a/locales/cs-CZ.yml +++ b/locales/cs-CZ.yml @@ -1622,9 +1622,6 @@ _theme: infoFg: "Text informací" infoWarnBg: "Pozadí varování" infoWarnFg: "Text varování" - cwBg: "Pozadí CW tlačítka" - cwFg: "Text CW tlačítka" - cwHoverBg: "Pozadí CW tlačítka (Hover)" toastBg: "Pozadí oznámení" toastFg: "Text oznámení" buttonBg: "Pozadí tlačítka" diff --git a/locales/de-DE.yml b/locales/de-DE.yml index 402b5af093..e4725ca723 100644 --- a/locales/de-DE.yml +++ b/locales/de-DE.yml @@ -1685,9 +1685,6 @@ _theme: infoFg: "Text von Informationen" infoWarnBg: "Hintergrund von Warnungen" infoWarnFg: "Text von Warnungen" - cwBg: "Hintergrund des Inhaltswarnungsknopfs" - cwFg: "Text des Inhaltswarnungsknopfs" - cwHoverBg: "Hintergrund des Inhaltswarnungsknopfs (Mouseover)" toastBg: "Hintergrund von Benachrichtigungen" toastFg: "Text von Benachrichtigungen" buttonBg: "Hintergrund von Schaltflächen" diff --git a/locales/en-US.yml b/locales/en-US.yml index a3a32f04f9..66825eaa7f 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1685,9 +1685,6 @@ _theme: infoFg: "Information text" infoWarnBg: "Warning background" infoWarnFg: "Warning text" - cwBg: "CW button background" - cwFg: "CW button text" - cwHoverBg: "CW button background (Hover)" toastBg: "Notification background" toastFg: "Notification text" buttonBg: "Button background" diff --git a/locales/es-ES.yml b/locales/es-ES.yml index f3e4bd7c75..3a01f40dfd 100644 --- a/locales/es-ES.yml +++ b/locales/es-ES.yml @@ -1666,9 +1666,6 @@ _theme: infoFg: "Texto de información" infoWarnBg: "Fondo de advertencias" infoWarnFg: "Texto de advertencias" - cwBg: "Fondo del botón CW" - cwFg: "Texto del botón CW" - cwHoverBg: "Fondo del botón CW (hover)" toastBg: "Fondo de notificaciones" toastFg: "Texto de notificaciones" buttonBg: "Fondo de botón" diff --git a/locales/fr-FR.yml b/locales/fr-FR.yml index b6c2aa889e..0ad1247ff0 100644 --- a/locales/fr-FR.yml +++ b/locales/fr-FR.yml @@ -1358,9 +1358,6 @@ _theme: infoFg: "Texte d'information" infoWarnBg: "Arrière-plan des avertissements" infoWarnFg: "Texte d’avertissement" - cwBg: "Arrière-plan du CW" - cwFg: "Texte du bouton CW" - cwHoverBg: "Arrière-plan du bouton CW (survolé)" toastBg: "Arrière-plan de la bulle de notification" toastFg: "Texte de la bulle de notification" buttonBg: "Arrière-plan du bouton" diff --git a/locales/id-ID.yml b/locales/id-ID.yml index 109dfb7603..90bca65119 100644 --- a/locales/id-ID.yml +++ b/locales/id-ID.yml @@ -1627,9 +1627,6 @@ _theme: infoFg: "Teks informasi" infoWarnBg: "Latar belakang peringatan" infoWarnFg: "Teks peringatan" - cwBg: "Latar belakang tombol Sembunyikan Konten" - cwFg: "Teks tombol Sembunyikan Konten" - cwHoverBg: "Latar belakang tombol Sembunyikan Konten (Mengambang)" toastBg: "Latar belakang notifikasi" toastFg: "Teks notifikasi" buttonBg: "Latar belakang tombol" diff --git a/locales/it-IT.yml b/locales/it-IT.yml index c881e5c012..fa8670d115 100644 --- a/locales/it-IT.yml +++ b/locales/it-IT.yml @@ -1685,9 +1685,6 @@ _theme: infoFg: "Testo di informazioni" infoWarnBg: "Sfondo degli avvisi" infoWarnFg: "Testo di avviso" - cwBg: "Sfondo del CW" - cwFg: "Testo del pulsante CW" - cwHoverBg: "Sfondo del pulsante CW (sorvolato)" toastBg: "Sfondo di notifica a comparsa" toastFg: "Testo di notifica a comparsa" buttonBg: "Sfondo del pulsante" diff --git a/locales/ja-KS.yml b/locales/ja-KS.yml index 43d98fdd04..5efd8cd119 100644 --- a/locales/ja-KS.yml +++ b/locales/ja-KS.yml @@ -1649,9 +1649,6 @@ _theme: infoFg: "情報の文字" infoWarnBg: "警告の背景" infoWarnFg: "警告の文字" - cwBg: "CW ボタンの背景" - cwFg: "CW ボタンの文字" - cwHoverBg: "CW ボタンの背景 (ホバー)" toastBg: "通知トーストの背景" toastFg: "通知トーストの文字" buttonBg: "ボタンの背景" diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index 4009b7df5f..d5c346717b 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -1663,9 +1663,6 @@ _theme: infoFg: "정보창 텍스트" infoWarnBg: "경고창 배경" infoWarnFg: "경고창 텍스트" - cwBg: "CW 버튼 배경" - cwFg: "CW 버튼 텍스트" - cwHoverBg: "CW 버튼 배경 (호버)" toastBg: "알림창 배경" toastFg: "알림창 텍스트" buttonBg: "버튼 배경" diff --git a/locales/pl-PL.yml b/locales/pl-PL.yml index 4e5eb147ea..f88055cc29 100644 --- a/locales/pl-PL.yml +++ b/locales/pl-PL.yml @@ -1043,9 +1043,6 @@ _theme: infoFg: "Tekst informacji" infoWarnBg: "Tło ostrzeżenia" infoWarnFg: "Tekst ostrzeżenia" - cwBg: "Tło CW" - cwFg: "Tekst CW" - cwHoverBg: "Tło CW (po najechaniu)" toastBg: "Tło powiadomień" toastFg: "Tekst powiadomień" buttonBg: "Tło przycisku" diff --git a/locales/ru-RU.yml b/locales/ru-RU.yml index ac30e3a98c..19e4baccb1 100644 --- a/locales/ru-RU.yml +++ b/locales/ru-RU.yml @@ -1551,9 +1551,6 @@ _theme: infoFg: "Текст сообщения" infoWarnBg: "Фон предупреждения" infoWarnFg: "Текст предупреждения" - cwBg: "Фон предупреждения о содержимом" - cwFg: "Текст предупреждения о содержимом" - cwHoverBg: "Фон предупреждения о содержимом (под указателем)" toastBg: "Фон оповещения" toastFg: "Текст оповещения" buttonBg: "Фон кнопки" diff --git a/locales/sk-SK.yml b/locales/sk-SK.yml index 811f93e711..181e725d75 100644 --- a/locales/sk-SK.yml +++ b/locales/sk-SK.yml @@ -1102,9 +1102,6 @@ _theme: infoFg: "Informačný text" infoWarnBg: "Pozadie varovania" infoWarnFg: "Text varovania" - cwBg: "CW pozadie tlačidla" - cwFg: "CW text tlačidla" - cwHoverBg: "CW pozadie tlačidla (pod kurzorom)" toastBg: "Pozadie upozornenia" toastFg: "Text upozornenia" buttonBg: "Pozadie tlačidla" diff --git a/locales/th-TH.yml b/locales/th-TH.yml index 6a553dab52..1c655f5886 100644 --- a/locales/th-TH.yml +++ b/locales/th-TH.yml @@ -1663,9 +1663,6 @@ _theme: infoFg: "ข้อความข้อมูล" infoWarnBg: "คำเตือนพื้นหลัง" infoWarnFg: "คำเตือนข้อความ" - cwBg: "ปุ่ม CW พื้นหลัง" - cwFg: "ปุ่ม CW ข้อความ" - cwHoverBg: "ปุ่ม CW พื้นหลัง (โฮเวอร์)" toastBg: "ประวัติการแจ้งเตือน" toastFg: "ข้อความแจ้งเตือน" buttonBg: "ปุ่มพื้นหลัง" diff --git a/locales/uk-UA.yml b/locales/uk-UA.yml index a0e2a52826..8d843d67f8 100644 --- a/locales/uk-UA.yml +++ b/locales/uk-UA.yml @@ -1290,9 +1290,6 @@ _theme: infoFg: "Текст інформації" infoWarnBg: "Фон попередження" infoWarnFg: "Текст попередження" - cwBg: "Фон чутливого змісту" - cwFg: "Текст чутливого змісту" - cwHoverBg: "Фон чутливого змісту (при наведенні)" toastBg: "Фон повідомлення" toastFg: "Текст повідомлення" buttonBg: "Фон кнопки" diff --git a/locales/vi-VN.yml b/locales/vi-VN.yml index 0c32735c31..b8a77a9200 100644 --- a/locales/vi-VN.yml +++ b/locales/vi-VN.yml @@ -1467,9 +1467,6 @@ _theme: infoFg: "Chữ thông tin" infoWarnBg: "Nền cảnh báo" infoWarnFg: "Chữ cảnh báo" - cwBg: "Nền nút nội dung ẩn" - cwFg: "Chữ nút nội dung ẩn" - cwHoverBg: "Nền nút nội dung ẩn (Chạm)" toastBg: "Nền thông báo" toastFg: "Chữ thông báo" buttonBg: "Nền nút" diff --git a/locales/zh-CN.yml b/locales/zh-CN.yml index 5f4db9192b..dfc4ccb688 100644 --- a/locales/zh-CN.yml +++ b/locales/zh-CN.yml @@ -1673,9 +1673,6 @@ _theme: infoFg: "信息文本" infoWarnBg: "警告背景" infoWarnFg: "警告文本" - cwBg: "隐藏内容按钮背景" - cwFg: "隐藏内容按钮文本" - cwHoverBg: "隐藏内容按钮背景(悬停)" toastBg: "Toast 通知背景" toastFg: "Toast 通知文本" buttonBg: "按钮背景" diff --git a/locales/zh-TW.yml b/locales/zh-TW.yml index 4cc336e35c..e715cae547 100644 --- a/locales/zh-TW.yml +++ b/locales/zh-TW.yml @@ -1685,9 +1685,6 @@ _theme: infoFg: "資訊內容" infoWarnBg: "警告背景" infoWarnFg: "警告文字" - cwBg: "隱藏內容按鈕背景" - cwFg: "隱藏內容按鈕文字" - cwHoverBg: "隱藏內容按鈕背景(懸浮)" toastBg: "通知背景" toastFg: "通知文本" buttonBg: "按鈕背景" From 66940d6cf1304dc1d5564519fa748766687b2b79 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Oct 2023 19:07:59 +0900 Subject: [PATCH 3/5] =?UTF-8?q?fix(backend):=20channels/timeline=E3=81=A7?= =?UTF-8?q?=E3=83=9F=E3=83=A5=E3=83=BC=E3=83=88=E3=81=8C=E5=8A=B9=E3=81=8B?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/server/api/endpoints/channels/timeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/channels/timeline.ts b/packages/backend/src/server/api/endpoints/channels/timeline.ts index 4385c698eb..2dfcf659d7 100644 --- a/packages/backend/src/server/api/endpoints/channels/timeline.ts +++ b/packages/backend/src/server/api/endpoints/channels/timeline.ts @@ -111,7 +111,7 @@ export default class extends Endpoint { // eslint- let timeline = await query.getMany(); timeline = timeline.filter(note => { - if (me && isUserRelated(note, userIdsWhoMeMuting, true)) return false; + if (me && isUserRelated(note, userIdsWhoMeMuting)) return false; return true; }); From 51b6a012a55eba9c0e902f6034cb1ded27aa9299 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Oct 2023 19:49:25 +0900 Subject: [PATCH 4/5] =?UTF-8?q?fix(frontend):=20=E3=83=A6=E3=83=BC?= =?UTF-8?q?=E3=82=B6=E3=83=BC=E3=83=97=E3=83=AD=E3=83=95=E3=82=A3=E3=83=BC?= =?UTF-8?q?=E3=83=AB=E3=83=9A=E3=83=BC=E3=82=B8=E3=81=A7=E3=82=BB=E3=83=B3?= =?UTF-8?q?=E3=82=B7=E3=83=86=E3=82=A3=E3=83=96=E3=81=AA=E3=83=A1=E3=83=87?= =?UTF-8?q?=E3=82=A3=E3=82=A2=E3=81=8C=E9=9A=A0=E3=81=95=E3=82=8C=E3=81=AA?= =?UTF-8?q?=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/pages/user/index.files.vue | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/packages/frontend/src/pages/user/index.files.vue b/packages/frontend/src/pages/user/index.files.vue index 205da5071d..43d6d91fc9 100644 --- a/packages/frontend/src/pages/user/index.files.vue +++ b/packages/frontend/src/pages/user/index.files.vue @@ -10,15 +10,18 @@ SPDX-License-Identifier: AGPL-3.0-only
- - - - +

{{ i18n.ts.nothing }}

@@ -45,6 +48,7 @@ let files = $ref<{ note: Misskey.entities.Note; file: Misskey.entities.DriveFile; }[]>([]); +let showingFiles = $ref([]); function thumbnail(image: Misskey.entities.DriveFile): string { return defaultStore.state.disableShowingAnimatedImages @@ -94,4 +98,9 @@ onMounted(() => { padding: 16px; text-align: center; } + +.sensitive { + display: grid; + place-items: center; +} From 854ac95511ef017b891185b17921291bb27c1ef2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 10 Oct 2023 20:06:02 +0900 Subject: [PATCH 5/5] =?UTF-8?q?fix(backend):=20=E3=82=BB=E3=83=B3=E3=82=B7?= =?UTF-8?q?=E3=83=86=E3=82=A3=E3=83=96=E8=A8=AD=E5=AE=9A=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=9F=E3=83=81=E3=83=A3=E3=83=B3=E3=83=8D=E3=83=AB=E3=81=AE?= =?UTF-8?q?=E6=8A=95=E7=A8=BF=E3=82=92users/notes=E3=81=A7=E8=BF=94?= =?UTF-8?q?=E3=81=95=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/server/api/endpoints/users/notes.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/users/notes.ts b/packages/backend/src/server/api/endpoints/users/notes.ts index d2a65142a5..dfef35986e 100644 --- a/packages/backend/src/server/api/endpoints/users/notes.ts +++ b/packages/backend/src/server/api/endpoints/users/notes.ts @@ -77,6 +77,7 @@ export default class extends Endpoint { // eslint- const untilId = ps.untilId ?? (ps.untilDate ? this.idService.genId(new Date(ps.untilDate!)) : null); const sinceId = ps.sinceId ?? (ps.sinceDate ? this.idService.genId(new Date(ps.sinceDate!)) : null); const isRangeSpecified = untilId != null && sinceId != null; + const isSelf = me && (me.id === ps.userId); if (isRangeSpecified || sinceId == null) { const [ @@ -100,7 +101,7 @@ export default class extends Endpoint { // eslint- noteIds = noteIds.slice(0, ps.limit); if (noteIds.length > 0) { - const isFollowing = me ? me.id === ps.userId || Object.hasOwn(await this.cacheService.userFollowingsCache.fetch(me.id), ps.userId) : false; + const isFollowing = me && Object.hasOwn(await this.cacheService.userFollowingsCache.fetch(me.id), ps.userId); const query = this.notesRepository.createQueryBuilder('note') .where('note.id IN (:...noteIds)', { noteIds: noteIds }) @@ -122,8 +123,9 @@ export default class extends Endpoint { // eslint- } } + if (note.channel?.isSensitive && !isSelf) return false; if (note.visibility === 'specified' && (!me || (me.id !== note.userId && !note.visibleUserIds.some(v => v === me.id)))) return false; - if (note.visibility === 'followers' && !isFollowing) return false; + if (note.visibility === 'followers' && !isFollowing && !isSelf) return false; return true; });