diff --git a/CHANGELOG.md b/CHANGELOG.md
index 69bb5ba89f..59c748fb68 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,18 @@
You should also include the user name that made the change.
-->
+## 12.117.1 (2022/07/19)
+
+### Improvements
+- Client: UIのブラッシュアップ @syuilo
+
+### Bugfixes
+- Server: ファイルのアップロードに失敗することがある問題を修正 @acid-chicken
+- Client: リアクションピッカーがアプリ内ウィンドウの後ろに表示されてしまう問題を修正 @syuilo
+- Client: ユーザー情報の取得の再試行を修正 @xianonn
+- Client: MFMチートシートの挙動を修正 @syuilo
+- Client: 「インスタンスからのお知らせを受け取る」の設定を変更できない問題を修正 @syuilo
+
## 12.117.0 (2022/07/18)
### Improvements
diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index e071b4bdab..0c4a7c7231 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -1038,6 +1038,8 @@ _mfm:
sparkleDescription: "キラキラしたパーティクルのエフェクトを追加します。"
rotate: "回転"
rotateDescription: "指定した角度で回転させます。"
+ plain: "プレーン"
+ plainDescription: "内側の構文を全て無効にします。"
_instanceTicker:
none: "表示しない"
diff --git a/locales/sk-SK.yml b/locales/sk-SK.yml
index 2ac0a8566f..4fbdc1cb12 100644
--- a/locales/sk-SK.yml
+++ b/locales/sk-SK.yml
@@ -885,6 +885,7 @@ enableAutoSensitiveDescription: "Ak je zapnuté, príznak NSFW sa na médiách a
activeEmailValidationDescription: "Dôkladnejšie overí e-mailovú adresu používateľa tým, že zistí, či ide o vyradenú e-mailovú adresu a či sa s ňou dá skutočne komunikovať. Ak nie je začiarknuté, e-mailová adresa sa kontroluje len ako text."
navbar: "Navigačný panel"
account: "Účty"
+move: "Pohyb"
_sensitiveMediaDetection:
description: "Strojové učenie sa použije na automatickú detekciu citlivých médií na účely ich moderovania. Mierne sa zvýši zaťaženie servera."
sensitivity: "Citlivosť detekcie"
@@ -1691,6 +1692,7 @@ _deck:
alwaysShowMainColumn: "Vždy zobraziť v hlavnom stĺpci"
columnAlign: "Zarovnať stĺpce"
addColumn: "Pridať stĺpec"
+ configureColumn: "Nastavenie stĺpcov"
swapLeft: "Vymeniť vľavo"
swapRight: "Vymeniť vpravo"
swapUp: "Vymeniť hore"
diff --git a/package.json b/package.json
index 2699b7dc96..cabb9f8f9b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "misskey",
- "version": "12.117.0",
+ "version": "12.117.1",
"codename": "indigo",
"repository": {
"type": "git",
diff --git a/packages/backend/src/misc/get-file-info.ts b/packages/backend/src/misc/get-file-info.ts
index 42061fcf83..1c988b2487 100644
--- a/packages/backend/src/misc/get-file-info.ts
+++ b/packages/backend/src/misc/get-file-info.ts
@@ -101,13 +101,17 @@ export async function getFileInfo(path: string, opts: {
let porn = false;
if (!opts.skipSensitiveDetection) {
- [sensitive, porn] = await detectSensitivity(
+ await detectSensitivity(
path,
type.mime,
opts.sensitiveThreshold ?? 0.5,
opts.sensitiveThresholdForPorn ?? 0.75,
opts.enableSensitiveMediaDetectionForVideos ?? false,
- );
+ ).then(value => {
+ [sensitive, porn] = value;
+ }, error => {
+ warnings.push(`detectSensitivity failed: ${error}`);
+ });
}
return {
diff --git a/packages/client/package.json b/packages/client/package.json
index 94f6688dd2..eaebf69ed8 100644
--- a/packages/client/package.json
+++ b/packages/client/package.json
@@ -15,7 +15,7 @@
"@rollup/plugin-alias": "3.1.9",
"@rollup/plugin-json": "4.1.0",
"@syuilo/aiscript": "0.11.1",
- "@vitejs/plugin-vue": "3.0.0",
+ "@vitejs/plugin-vue": "3.0.1",
"@vue/compiler-sfc": "3.2.37",
"abort-controller": "3.0.0",
"autobind-decorator": "2.4.0",
@@ -73,7 +73,7 @@
"uuid": "8.3.2",
"v-debounce": "0.1.2",
"vanilla-tilt": "1.7.2",
- "vite": "3.0.0",
+ "vite": "3.0.2",
"vue": "3.2.37",
"vue-prism-editor": "2.0.0-alpha.2",
"vuedraggable": "4.0.1",
diff --git a/packages/client/src/components/ui/window.vue b/packages/client/src/components/ui/window.vue
index e259ecdab3..460cf7d597 100644
--- a/packages/client/src/components/ui/window.vue
+++ b/packages/client/src/components/ui/window.vue
@@ -75,7 +75,7 @@ const props = withDefaults(defineProps<{
canResize: false,
closeButton: true,
mini: false,
- front: true,
+ front: false,
contextmenu: null,
buttonsLeft: () => [],
buttonsRight: () => [],
diff --git a/packages/client/src/pages/mfm-cheat-sheet.vue b/packages/client/src/pages/mfm-cheat-sheet.vue
index 3315479abf..0b5dae996f 100644
--- a/packages/client/src/pages/mfm-cheat-sheet.vue
+++ b/packages/client/src/pages/mfm-cheat-sheet.vue
@@ -1,301 +1,313 @@
-
-
{{ $ts._mfm.intro }}
+
+
+
{{ $ts._mfm.intro }}
+
+
{{ $ts._mfm.mention }}
+
+
{{ $ts._mfm.mentionDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.hashtag }}
+
+
{{ $ts._mfm.hashtagDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.url }}
+
+
{{ $ts._mfm.urlDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.link }}
+
+
{{ $ts._mfm.linkDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.emoji }}
+
+
{{ $ts._mfm.emojiDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.bold }}
+
+
{{ $ts._mfm.boldDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.small }}
+
+
{{ $ts._mfm.smallDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.quote }}
+
+
{{ $ts._mfm.quoteDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.center }}
+
+
{{ $ts._mfm.centerDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.inlineCode }}
+
+
{{ $ts._mfm.inlineCodeDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.blockCode }}
+
+
{{ $ts._mfm.blockCodeDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.inlineMath }}
+
+
{{ $ts._mfm.inlineMathDescription }}
+
+
+ MFM
+
+
+
+
+
+
{{ $ts._mfm.flip }}
+
+
{{ $ts._mfm.flipDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.font }}
+
+
{{ $ts._mfm.fontDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.x2 }}
+
+
{{ $ts._mfm.x2Description }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.x3 }}
+
+
{{ $ts._mfm.x3Description }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.x4 }}
+
+
{{ $ts._mfm.x4Description }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.blur }}
+
+
{{ $ts._mfm.blurDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.jelly }}
+
+
{{ $ts._mfm.jellyDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.tada }}
+
+
{{ $ts._mfm.tadaDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.jump }}
+
+
{{ $ts._mfm.jumpDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.bounce }}
+
+
{{ $ts._mfm.bounceDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.spin }}
+
+
{{ $ts._mfm.spinDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.shake }}
+
+
{{ $ts._mfm.shakeDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.twitch }}
+
+
{{ $ts._mfm.twitchDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.rainbow }}
+
+
{{ $ts._mfm.rainbowDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.sparkle }}
+
+
{{ $ts._mfm.sparkleDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.rotate }}
+
+
{{ $ts._mfm.rotateDescription }}
+
+
+ MFM
+
+
+
+
+
{{ $ts._mfm.plain }}
+
+
{{ $ts._mfm.plainDescription }}
+
+
+ MFM
+
-
-
{{ $ts._mfm.url }}
-
-
{{ $ts._mfm.urlDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.link }}
-
-
{{ $ts._mfm.linkDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.emoji }}
-
-
{{ $ts._mfm.emojiDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.bold }}
-
-
{{ $ts._mfm.boldDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.small }}
-
-
{{ $ts._mfm.smallDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.quote }}
-
-
{{ $ts._mfm.quoteDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.center }}
-
-
{{ $ts._mfm.centerDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.inlineCode }}
-
-
{{ $ts._mfm.inlineCodeDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.blockCode }}
-
-
{{ $ts._mfm.blockCodeDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.inlineMath }}
-
-
{{ $ts._mfm.inlineMathDescription }}
-
-
- MFM
-
-
-
-
-
-
{{ $ts._mfm.flip }}
-
-
{{ $ts._mfm.flipDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.font }}
-
-
{{ $ts._mfm.fontDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.x2 }}
-
-
{{ $ts._mfm.x2Description }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.x3 }}
-
-
{{ $ts._mfm.x3Description }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.x4 }}
-
-
{{ $ts._mfm.x4Description }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.blur }}
-
-
{{ $ts._mfm.blurDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.jelly }}
-
-
{{ $ts._mfm.jellyDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.tada }}
-
-
{{ $ts._mfm.tadaDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.jump }}
-
-
{{ $ts._mfm.jumpDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.bounce }}
-
-
{{ $ts._mfm.bounceDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.spin }}
-
-
{{ $ts._mfm.spinDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.shake }}
-
-
{{ $ts._mfm.shakeDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.twitch }}
-
-
{{ $ts._mfm.twitchDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.rainbow }}
-
-
{{ $ts._mfm.rainbowDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.sparkle }}
-
-
{{ $ts._mfm.sparkleDescription }}
-
-
- MFM
-
-
-
-
-
{{ $ts._mfm.rotate }}
-
-
{{ $ts._mfm.rotateDescription }}
-
-
- MFM
-
-
-
-
+
@@ -306,35 +318,36 @@ import { definePageMetadata } from '@/scripts/page-metadata';
import { i18n } from '@/i18n';
import { instance } from '@/instance';
-const preview_mention = '@example';
-const preview_hashtag = '#test';
-const preview_url = 'https://example.com';
-const preview_link = `[${i18n.ts._mfm.dummy}](https://example.com)`;
-const preview_emoji = instance.emojis.length ? `:${instance.emojis[0].name}:` : ':emojiname:';
-const preview_bold = `**${i18n.ts._mfm.dummy}**`;
-const preview_small = `${i18n.ts._mfm.dummy}`;
-const preview_center = `
${i18n.ts._mfm.dummy}`;
-const preview_inlineCode = '`<: "Hello, world!"`';
-const preview_blockCode = '```\n~ (#i, 100) {\n\t<: ? ((i % 15) = 0) "FizzBuzz"\n\t\t.? ((i % 3) = 0) "Fizz"\n\t\t.? ((i % 5) = 0) "Buzz"\n\t\t. i\n}\n```';
-const preview_inlineMath = '\\(x= \\frac{-b\' \\pm \\sqrt{(b\')^2-ac}}{a}\\)';
-const preview_quote = `> ${i18n.ts._mfm.dummy}`;
-const preview_search = `${i18n.ts._mfm.dummy} 検索`;
-const preview_jelly = '$[jelly 🍮] $[jelly.speed=5s 🍮]';
-const preview_tada = '$[tada 🍮] $[tada.speed=5s 🍮]';
-const preview_jump = '$[jump 🍮] $[jump.speed=5s 🍮]';
-const preview_bounce = '$[bounce 🍮] $[bounce.speed=5s 🍮]';
-const preview_shake = '$[shake 🍮] $[shake.speed=5s 🍮]';
-const preview_twitch = '$[twitch 🍮] $[twitch.speed=5s 🍮]';
-const preview_spin = '$[spin 🍮] $[spin.left 🍮] $[spin.alternate 🍮]\n$[spin.x 🍮] $[spin.x,left 🍮] $[spin.x,alternate 🍮]\n$[spin.y 🍮] $[spin.y,left 🍮] $[spin.y,alternate 🍮]\n\n$[spin.speed=5s 🍮]';
-const preview_flip = `$[flip ${i18n.ts._mfm.dummy}]\n$[flip.v ${i18n.ts._mfm.dummy}]\n$[flip.h,v ${i18n.ts._mfm.dummy}]`;
-const preview_font = `$[font.serif ${i18n.ts._mfm.dummy}]\n$[font.monospace ${i18n.ts._mfm.dummy}]\n$[font.cursive ${i18n.ts._mfm.dummy}]\n$[font.fantasy ${i18n.ts._mfm.dummy}]`;
-const preview_x2 = '$[x2 🍮]';
-const preview_x3 = '$[x3 🍮]';
-const preview_x4 = '$[x4 🍮]';
-const preview_blur = `$[blur ${i18n.ts._mfm.dummy}]`;
-const preview_rainbow = '$[rainbow 🍮] $[rainbow.speed=5s 🍮]';
-const preview_sparkle = '$[sparkle 🍮]';
-const preview_rotate = '$[rotate 🍮]';
+let preview_mention = $ref('@example');
+let preview_hashtag = $ref('#test');
+let preview_url = $ref('https://example.com');
+let preview_link = $ref(`[${i18n.ts._mfm.dummy}](https://example.com)`);
+let preview_emoji = $ref(instance.emojis.length ? `:${instance.emojis[0].name}:` : ':emojiname:');
+let preview_bold = $ref(`**${i18n.ts._mfm.dummy}**`);
+let preview_small = $ref(`${i18n.ts._mfm.dummy}`);
+let preview_center = $ref(`${i18n.ts._mfm.dummy}`);
+let preview_inlineCode = $ref('`<: "Hello, world!"`');
+let preview_blockCode = $ref('```\n~ (#i, 100) {\n\t<: ? ((i % 15) = 0) "FizzBuzz"\n\t\t.? ((i % 3) = 0) "Fizz"\n\t\t.? ((i % 5) = 0) "Buzz"\n\t\t. i\n}\n```');
+let preview_inlineMath = $ref('\\(x= \\frac{-b\' \\pm \\sqrt{(b\')^2-ac}}{a}\\)');
+let preview_quote = $ref(`> ${i18n.ts._mfm.dummy}`);
+let preview_search = $ref(`${i18n.ts._mfm.dummy} 検索`);
+let preview_jelly = $ref('$[jelly 🍮] $[jelly.speed=5s 🍮]');
+let preview_tada = $ref('$[tada 🍮] $[tada.speed=5s 🍮]');
+let preview_jump = $ref('$[jump 🍮] $[jump.speed=5s 🍮]');
+let preview_bounce = $ref('$[bounce 🍮] $[bounce.speed=5s 🍮]');
+let preview_shake = $ref('$[shake 🍮] $[shake.speed=5s 🍮]');
+let preview_twitch = $ref('$[twitch 🍮] $[twitch.speed=5s 🍮]');
+let preview_spin = $ref('$[spin 🍮] $[spin.left 🍮] $[spin.alternate 🍮]\n$[spin.x 🍮] $[spin.x,left 🍮] $[spin.x,alternate 🍮]\n$[spin.y 🍮] $[spin.y,left 🍮] $[spin.y,alternate 🍮]\n\n$[spin.speed=5s 🍮]');
+let preview_flip = $ref(`$[flip ${i18n.ts._mfm.dummy}]\n$[flip.v ${i18n.ts._mfm.dummy}]\n$[flip.h,v ${i18n.ts._mfm.dummy}]`);
+let preview_font = $ref(`$[font.serif ${i18n.ts._mfm.dummy}]\n$[font.monospace ${i18n.ts._mfm.dummy}]\n$[font.cursive ${i18n.ts._mfm.dummy}]\n$[font.fantasy ${i18n.ts._mfm.dummy}]`);
+let preview_x2 = $ref('$[x2 🍮]');
+let preview_x3 = $ref('$[x3 🍮]');
+let preview_x4 = $ref('$[x4 🍮]');
+let preview_blur = $ref(`$[blur ${i18n.ts._mfm.dummy}]`);
+let preview_rainbow = $ref('$[rainbow 🍮] $[rainbow.speed=5s 🍮]');
+let preview_sparkle = $ref('$[sparkle 🍮]');
+let preview_rotate = $ref('$[rotate 🍮]');
+let preview_plain = $ref('**bold** @mention #hashtag `code` $[x2 🍮]');
definePageMetadata({
title: i18n.ts._mfm.cheatSheet,
diff --git a/packages/client/src/pages/registry.value.vue b/packages/client/src/pages/registry.value.vue
index 34253cc93b..9deb31e4a4 100644
--- a/packages/client/src/pages/registry.value.vue
+++ b/packages/client/src/pages/registry.value.vue
@@ -74,7 +74,7 @@ function fetchValue() {
async function save() {
try {
JSON5.parse(valueForEditor);
- } catch (e) {
+ } catch (err) {
os.alert({
type: 'error',
text: i18n.ts.invalidValue,
diff --git a/packages/client/src/pages/settings/email.vue b/packages/client/src/pages/settings/email.vue
index e575af6d6b..9d2afd6a6f 100644
--- a/packages/client/src/pages/settings/email.vue
+++ b/packages/client/src/pages/settings/email.vue
@@ -10,7 +10,7 @@
-
+
{{ $ts.receiveAnnouncementFromInstance }}
diff --git a/packages/client/src/pages/user/followers.vue b/packages/client/src/pages/user/followers.vue
index 296a4b7b4d..b61b48329a 100644
--- a/packages/client/src/pages/user/followers.vue
+++ b/packages/client/src/pages/user/followers.vue
@@ -6,7 +6,7 @@
-
+
diff --git a/packages/client/src/pages/user/following.vue b/packages/client/src/pages/user/following.vue
index d1753fe7d5..a23977b425 100644
--- a/packages/client/src/pages/user/following.vue
+++ b/packages/client/src/pages/user/following.vue
@@ -6,7 +6,7 @@
-
+
diff --git a/packages/client/src/pages/user/index.vue b/packages/client/src/pages/user/index.vue
index 4b07beeb8e..7e635f8b2e 100644
--- a/packages/client/src/pages/user/index.vue
+++ b/packages/client/src/pages/user/index.vue
@@ -10,7 +10,7 @@
-
+
diff --git a/packages/client/src/ui/_common_/navbar.vue b/packages/client/src/ui/_common_/navbar.vue
index 7e6065c305..30837ed287 100644
--- a/packages/client/src/ui/_common_/navbar.vue
+++ b/packages/client/src/ui/_common_/navbar.vue
@@ -156,7 +156,7 @@ function more(ev: MouseEvent) {