diff --git a/package.json b/package.json
index cd4185b82..566621b7f 100644
--- a/package.json
+++ b/package.json
@@ -71,7 +71,7 @@
"build:fdroid": "cross-env PUBLIC_URL=./ GENERATE_SOURCEMAP=false VITE_APP_DISTRIBUTION=fdroid vite build",
"build:preload": "vite build --config electron/vite.preload.config.js",
"build-vercel": "cross-env NODE_OPTIONS=\"--max_old_space_size=4096\" PUBLIC_URL=./ GENERATE_SOURCEMAP=true VITE_COMMIT_REF=$COMMIT_REF CI='' vite build",
- "test": "vitest",
+ "test": "vitest --maxWorkers=4",
"test:leaks": "vitest run --detectAsyncLeaks",
"preview": "vite preview",
"analyze-bundle": "cross-env PUBLIC_URL=./ GENERATE_SOURCEMAP=true vite build && npx source-map-explorer 'dist/assets/*.js'",
diff --git a/public/translations/ar/default.json b/public/translations/ar/default.json
index 2475c0923..b0d22087b 100644
--- a/public/translations/ar/default.json
+++ b/public/translations/ar/default.json
@@ -399,5 +399,6 @@
"ban": "حظر",
"timestamp": "الطابع الزمني",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "فيديو YouTube"
}
diff --git a/public/translations/bn/default.json b/public/translations/bn/default.json
index a8f9da3b0..2085b7c40 100644
--- a/public/translations/bn/default.json
+++ b/public/translations/bn/default.json
@@ -399,5 +399,6 @@
"ban": "নিষেধ করুন",
"timestamp": "টাইমস্ট্যাম্প",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube ভিডিও"
}
diff --git a/public/translations/cs/default.json b/public/translations/cs/default.json
index b62cd25f2..750ba1345 100644
--- a/public/translations/cs/default.json
+++ b/public/translations/cs/default.json
@@ -399,5 +399,6 @@
"ban": "zakázat",
"timestamp": "časové razítko",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "video YouTube"
}
diff --git a/public/translations/da/default.json b/public/translations/da/default.json
index 17045636b..27942ea82 100644
--- a/public/translations/da/default.json
+++ b/public/translations/da/default.json
@@ -399,5 +399,6 @@
"ban": "forbyd",
"timestamp": "tidsstempel",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube-video"
}
diff --git a/public/translations/de/default.json b/public/translations/de/default.json
index c9e0ec333..f4f36056a 100644
--- a/public/translations/de/default.json
+++ b/public/translations/de/default.json
@@ -399,5 +399,6 @@
"ban": "sperren",
"timestamp": "Zeitstempel",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube-Video"
}
diff --git a/public/translations/el/default.json b/public/translations/el/default.json
index 2ae041a29..3c54ca986 100644
--- a/public/translations/el/default.json
+++ b/public/translations/el/default.json
@@ -399,5 +399,6 @@
"ban": "απαγόρευση",
"timestamp": "χρονοσήμανση",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "βίντεο YouTube"
}
diff --git a/public/translations/en/default.json b/public/translations/en/default.json
index 37c97a0ca..4b8d99f3c 100644
--- a/public/translations/en/default.json
+++ b/public/translations/en/default.json
@@ -418,5 +418,6 @@
"ban": "ban",
"timestamp": "timestamp",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube video"
}
diff --git a/public/translations/es/default.json b/public/translations/es/default.json
index 39162f609..f5e43b78c 100644
--- a/public/translations/es/default.json
+++ b/public/translations/es/default.json
@@ -399,5 +399,6 @@
"ban": "prohibir",
"timestamp": "marca de tiempo",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "video de YouTube"
}
diff --git a/public/translations/fa/default.json b/public/translations/fa/default.json
index c9ad89dc8..075e2049a 100644
--- a/public/translations/fa/default.json
+++ b/public/translations/fa/default.json
@@ -399,5 +399,6 @@
"ban": "مسدود کردن",
"timestamp": "مهر زمان",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "ویدیوی YouTube"
}
diff --git a/public/translations/fi/default.json b/public/translations/fi/default.json
index d91352b54..419488edf 100644
--- a/public/translations/fi/default.json
+++ b/public/translations/fi/default.json
@@ -399,5 +399,6 @@
"ban": "kielto",
"timestamp": "aikaleimaustiedosto",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube-video"
}
diff --git a/public/translations/fil/default.json b/public/translations/fil/default.json
index 8b3d74e5c..66e459df4 100644
--- a/public/translations/fil/default.json
+++ b/public/translations/fil/default.json
@@ -399,5 +399,6 @@
"ban": "ipagbawal",
"timestamp": "timestamp",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "video sa YouTube"
}
diff --git a/public/translations/fr/default.json b/public/translations/fr/default.json
index 45aca0d6a..393646848 100644
--- a/public/translations/fr/default.json
+++ b/public/translations/fr/default.json
@@ -399,5 +399,6 @@
"ban": "interdire",
"timestamp": "horodatage",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "vidéo YouTube"
}
diff --git a/public/translations/he/default.json b/public/translations/he/default.json
index 046059c41..d823e75d8 100644
--- a/public/translations/he/default.json
+++ b/public/translations/he/default.json
@@ -399,5 +399,6 @@
"ban": "חסימה",
"timestamp": "חותמת זמן",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "סרטון YouTube"
}
diff --git a/public/translations/hi/default.json b/public/translations/hi/default.json
index b8a62a8ca..e0546c6b3 100644
--- a/public/translations/hi/default.json
+++ b/public/translations/hi/default.json
@@ -399,5 +399,6 @@
"ban": "प्रतिबंध",
"timestamp": "टाइमस्टैंप",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube वीडियो"
}
diff --git a/public/translations/hu/default.json b/public/translations/hu/default.json
index 18e701de1..30bf5d2cf 100644
--- a/public/translations/hu/default.json
+++ b/public/translations/hu/default.json
@@ -399,5 +399,6 @@
"ban": "tiltás",
"timestamp": "időbélyeg",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube-videó"
}
diff --git a/public/translations/id/default.json b/public/translations/id/default.json
index 68872425a..dedc1dbb4 100644
--- a/public/translations/id/default.json
+++ b/public/translations/id/default.json
@@ -399,5 +399,6 @@
"ban": "larangan",
"timestamp": "stempel waktu",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "video YouTube"
}
diff --git a/public/translations/it/default.json b/public/translations/it/default.json
index bc32a557c..2b9e99130 100644
--- a/public/translations/it/default.json
+++ b/public/translations/it/default.json
@@ -399,5 +399,6 @@
"ban": "vietare",
"timestamp": "marca temporale",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "video YouTube"
}
diff --git a/public/translations/ja/default.json b/public/translations/ja/default.json
index 4c5133687..c9108e4b9 100644
--- a/public/translations/ja/default.json
+++ b/public/translations/ja/default.json
@@ -399,5 +399,6 @@
"ban": "ブロック",
"timestamp": "タイムスタンプ",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube動画"
}
diff --git a/public/translations/ko/default.json b/public/translations/ko/default.json
index 38fa563d7..ba6556c53 100644
--- a/public/translations/ko/default.json
+++ b/public/translations/ko/default.json
@@ -399,5 +399,6 @@
"ban": "차단",
"timestamp": "타임스탬프",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube 동영상"
}
diff --git a/public/translations/mr/default.json b/public/translations/mr/default.json
index b49f090a1..b5cd4a153 100644
--- a/public/translations/mr/default.json
+++ b/public/translations/mr/default.json
@@ -399,5 +399,6 @@
"ban": "प्रतिबंध",
"timestamp": "टाइमस्टॅम्प",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube व्हिडिओ"
}
diff --git a/public/translations/nl/default.json b/public/translations/nl/default.json
index 7c27d424e..1177756ea 100644
--- a/public/translations/nl/default.json
+++ b/public/translations/nl/default.json
@@ -399,5 +399,6 @@
"ban": "verbannen",
"timestamp": "tijdstempel",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube-video"
}
diff --git a/public/translations/no/default.json b/public/translations/no/default.json
index ae92db179..e5f06010a 100644
--- a/public/translations/no/default.json
+++ b/public/translations/no/default.json
@@ -399,5 +399,6 @@
"ban": "forbud",
"timestamp": "tidsstempel",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube-video"
}
diff --git a/public/translations/pl/default.json b/public/translations/pl/default.json
index 16531a36f..09686d6a4 100644
--- a/public/translations/pl/default.json
+++ b/public/translations/pl/default.json
@@ -399,5 +399,6 @@
"ban": "zbanować",
"timestamp": "znacznik czasu",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "wideo YouTube"
}
diff --git a/public/translations/pt/default.json b/public/translations/pt/default.json
index 8f3125515..495362dd3 100644
--- a/public/translations/pt/default.json
+++ b/public/translations/pt/default.json
@@ -399,5 +399,6 @@
"ban": "banir",
"timestamp": "marca de tempo",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "vídeo do YouTube"
}
diff --git a/public/translations/ro/default.json b/public/translations/ro/default.json
index 7e89022ce..20a6c8b84 100644
--- a/public/translations/ro/default.json
+++ b/public/translations/ro/default.json
@@ -399,5 +399,6 @@
"ban": "interzice",
"timestamp": "marcă de timp",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "video YouTube"
}
diff --git a/public/translations/ru/default.json b/public/translations/ru/default.json
index 3d40efd8b..ee59405e5 100644
--- a/public/translations/ru/default.json
+++ b/public/translations/ru/default.json
@@ -399,5 +399,6 @@
"ban": "блокировка",
"timestamp": "временная метка",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "видео YouTube"
}
diff --git a/public/translations/sq/default.json b/public/translations/sq/default.json
index aeeefa4fb..d957627ae 100644
--- a/public/translations/sq/default.json
+++ b/public/translations/sq/default.json
@@ -399,5 +399,6 @@
"ban": "ndalim",
"timestamp": "vulë kohe",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "video YouTube"
}
diff --git a/public/translations/sv/default.json b/public/translations/sv/default.json
index 9ccc27ce3..16461023a 100644
--- a/public/translations/sv/default.json
+++ b/public/translations/sv/default.json
@@ -399,5 +399,6 @@
"ban": "förbjud",
"timestamp": "tidsstämpel",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube-video"
}
diff --git a/public/translations/te/default.json b/public/translations/te/default.json
index 2beb4767e..858193088 100644
--- a/public/translations/te/default.json
+++ b/public/translations/te/default.json
@@ -399,5 +399,6 @@
"ban": "నిషేధం",
"timestamp": "టైమ్స్టాంప్",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube వీడియో"
}
diff --git a/public/translations/th/default.json b/public/translations/th/default.json
index f7107f17a..40d6aec46 100644
--- a/public/translations/th/default.json
+++ b/public/translations/th/default.json
@@ -399,5 +399,6 @@
"ban": "แบน",
"timestamp": "แสตมป์เวลา",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "วิดีโอ YouTube"
}
diff --git a/public/translations/tr/default.json b/public/translations/tr/default.json
index 2d84909d6..40ec38cb0 100644
--- a/public/translations/tr/default.json
+++ b/public/translations/tr/default.json
@@ -399,5 +399,6 @@
"ban": "yasakla",
"timestamp": "zaman damgası",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube videosu"
}
diff --git a/public/translations/uk/default.json b/public/translations/uk/default.json
index 06e09b046..bfc8b604b 100644
--- a/public/translations/uk/default.json
+++ b/public/translations/uk/default.json
@@ -399,5 +399,6 @@
"ban": "заблокувати",
"timestamp": "часова мітка",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "відео YouTube"
}
diff --git a/public/translations/ur/default.json b/public/translations/ur/default.json
index 47eee3172..0effd6bc1 100644
--- a/public/translations/ur/default.json
+++ b/public/translations/ur/default.json
@@ -399,5 +399,6 @@
"ban": "روک",
"timestamp": "ٹائم سٹیمپ",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube ویڈیو"
}
diff --git a/public/translations/vi/default.json b/public/translations/vi/default.json
index b99c911a4..3a8dc69dc 100644
--- a/public/translations/vi/default.json
+++ b/public/translations/vi/default.json
@@ -399,5 +399,6 @@
"ban": "cấm",
"timestamp": "dấu thời gian",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "video YouTube"
}
diff --git a/public/translations/zh/default.json b/public/translations/zh/default.json
index 96c68340f..a76b591e4 100644
--- a/public/translations/zh/default.json
+++ b/public/translations/zh/default.json
@@ -399,5 +399,6 @@
"ban": "封禁",
"timestamp": "时间戳",
"tag": "tag",
- "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled."
+ "post_form_flash_upload_prompt": "Recommended SWF host: Catbox. Upload a .swf, then paste the direct https://files.catbox.moe/...swf link in Link. Other hosts must provide a direct HTTPS .swf URL with CORS enabled.",
+ "youtube_video": "YouTube 视频"
}
diff --git a/src/components/__tests__/post-community-address-compat.test.tsx b/src/components/__tests__/post-community-address-compat.test.tsx
index c74b1898a..377238e18 100644
--- a/src/components/__tests__/post-community-address-compat.test.tsx
+++ b/src/components/__tests__/post-community-address-compat.test.tsx
@@ -151,6 +151,8 @@ vi.mock('../../lib/utils/media-utils', () => ({
getDisplayMediaInfoType: (type?: string) => type ?? 'unknown',
getHasThumbnail: () => true,
getMediaDimensions: () => '100x100',
+ getPostMediaTypeLabel: (_commentMediaInfo: unknown, resolvedType?: string) => resolvedType ?? '',
+ getYouTubeEmbedPostMediaFileLink: () => undefined,
}));
vi.mock('../../lib/utils/post-utils', () => ({
@@ -171,6 +173,7 @@ vi.mock('../../lib/utils/pending-approval-moderation', () => ({
vi.mock('../../lib/utils/url-utils', () => ({
isValidURL: () => true,
+ parseHttpUrl: (value: string) => new URL(value),
}));
vi.mock('../../lib/utils/view-utils', () => ({
diff --git a/src/components/comment-content/__tests__/comment-content.test.tsx b/src/components/comment-content/__tests__/comment-content.test.tsx
index a9c86b334..2e0832a6d 100644
--- a/src/components/comment-content/__tests__/comment-content.test.tsx
+++ b/src/components/comment-content/__tests__/comment-content.test.tsx
@@ -408,11 +408,11 @@ describe('CommentContent', () => {
cid: 'post-2',
content: 'ignored',
postCid: 'post-2',
- reason: 'spam',
+ reason: 'duplicate of >>96',
removed: true,
});
expect(container.textContent).toContain('this_post_was_removed');
- expect(container.textContent).toContain('Reason: "spam"');
+ expect(queryMarkdownText()).toEqual(['Reason: duplicate of >>96']);
await renderContent({
cid: 'post-3',
@@ -422,7 +422,7 @@ describe('CommentContent', () => {
reason: 'self-delete',
});
expect(container.textContent).toContain('user_deleted_this_post');
- expect(container.textContent).toContain('Reason: "self-delete"');
+ expect(queryMarkdownText()).toEqual(['Reason: self-delete']);
});
it('renders pending approval, ban details, and loading or failed states', async () => {
@@ -442,6 +442,7 @@ describe('CommentContent', () => {
expect(container.textContent).toContain('pending_mod_approval');
expect(container.textContent).toContain('pending-reason:rules violation');
+ expect(queryMarkdownText()).toEqual(['queued body', 'pending-reason:rules violation']);
const tooltip = container.querySelector('[data-testid="tooltip"]');
expect(tooltip?.getAttribute('title')).toContain('ban:short:music-posting.eth:2024-01-01 12:00:00');
diff --git a/src/components/comment-content/comment-content.tsx b/src/components/comment-content/comment-content.tsx
index c522dc5b5..c7853c76c 100644
--- a/src/components/comment-content/comment-content.tsx
+++ b/src/components/comment-content/comment-content.tsx
@@ -156,7 +156,14 @@ const CommentContent = ({
const failedError = getFailedCommentError(resolvedPost);
const failedErrorMessage = formatErrorMessageForDisplay(failedError);
const shouldShowUnpublishedStateDetails = !cid && (!hasFailedState || Boolean(failedError));
+ const reasonMessage = reason ? `${capitalize(t('reason'))}: ${reason}` : undefined;
const pendingApprovalReason = pendingApproval ? reason?.trim() : undefined;
+ const pendingApprovalReasonMessage = pendingApprovalReason
+ ? t('pending_mod_approval_reason', {
+ reason: pendingApprovalReason,
+ interpolation: { escapeValue: false },
+ })
+ : undefined;
const loadingString = (