From f1541318067e9e0bfbabd142bc8e4bad7b656fd1 Mon Sep 17 00:00:00 2001 From: Dimitri A Date: Tue, 1 Jul 2025 05:03:26 +0200 Subject: [PATCH 1/5] locales(update): Updated French locale --- apps/juxtaposition-ui/src/translations/fr.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/juxtaposition-ui/src/translations/fr.json b/apps/juxtaposition-ui/src/translations/fr.json index 4926ea95..6a9264cb 100644 --- a/apps/juxtaposition-ui/src/translations/fr.json +++ b/apps/juxtaposition-ui/src/translations/fr.json @@ -47,7 +47,7 @@ "followers": "Abonnés", "follow_user": "Suivre", "following_user": "Suivi(e)", - "befriend": "Demander en ami", + "befriend": "Demander en ami(e)", "pending": "En attente", "unfriend": "Retirer des amis", "no_friends": "Aucun ami", From ab32aab5775e7f01cfd400ad006e2dbec7b289a2 Mon Sep 17 00:00:00 2001 From: Viktor Varga Date: Tue, 1 Jul 2025 11:32:37 +0200 Subject: [PATCH 2/5] locales(update): Updated Hungarian locale --- apps/juxtaposition-ui/src/translations/hu.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/juxtaposition-ui/src/translations/hu.json b/apps/juxtaposition-ui/src/translations/hu.json index 86942f2b..1038204e 100644 --- a/apps/juxtaposition-ui/src/translations/hu.json +++ b/apps/juxtaposition-ui/src/translations/hu.json @@ -73,7 +73,7 @@ "text_hint": "Koppints ide egy új bejegyzés létrehozásához." }, "messages": { - "coming_soon": "Az Üzenetek még nincs kész. Nézz vissza később!" + "coming_soon": "Nincs üzenet" }, "setup": { "welcome": "Köszöntünk Juxtaposition-ben!", From 5e6d4fe3a45656b90cb1983fda607570705c9b79 Mon Sep 17 00:00:00 2001 From: Evan Lie Date: Tue, 1 Jul 2025 04:29:06 +0200 Subject: [PATCH 3/5] locales(update): Updated Indonesian locale --- apps/juxtaposition-ui/src/translations/id.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/juxtaposition-ui/src/translations/id.json b/apps/juxtaposition-ui/src/translations/id.json index 155b01ca..cc4e8889 100644 --- a/apps/juxtaposition-ui/src/translations/id.json +++ b/apps/juxtaposition-ui/src/translations/id.json @@ -121,6 +121,6 @@ "swearing": "Postingan tidak boleh mengandung bahasa eksplisit." }, "messages": { - "coming_soon": "Pesan-Pesan belum siap sekarang. Segara periksa kembali!" + "coming_soon": "Tidak ada Pesanan" } } From 3cba1e58d10554aebd1dc33eb835be47b2ae22c0 Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Sat, 12 Jul 2025 22:46:12 +1000 Subject: [PATCH 4/5] fix(api): Actually log server errors --- apps/miiverse-api/src/server.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/miiverse-api/src/server.ts b/apps/miiverse-api/src/server.ts index d2637c51..44afc421 100644 --- a/apps/miiverse-api/src/server.ts +++ b/apps/miiverse-api/src/server.ts @@ -65,7 +65,12 @@ app.use((_request: express.Request, response: express.Response) => { // non-404 error handler logger.info('Creating non-404 status handler'); -app.use((_error: unknown, _request: express.Request, response: express.Response, _next: express.NextFunction) => { +app.use((error: unknown, request: express.Request, response: express.Response, next: express.NextFunction) => { + if (response.headersSent) { + return next(error); + } + + request.log.error(request, 'Request failed!'); return serverError(response, ApiErrorCode.UNKNOWN_ERROR); }); From ae6e6afca01e88ce56428a00449f5627e44b1e60 Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Sat, 12 Jul 2025 22:59:51 +1000 Subject: [PATCH 5/5] fix(api): Post id and body aren't actually required at input --- apps/miiverse-api/src/models/post.ts | 7 +++++-- apps/miiverse-api/src/types/mongoose/post.ts | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/miiverse-api/src/models/post.ts b/apps/miiverse-api/src/models/post.ts index 9107011c..8f192997 100644 --- a/apps/miiverse-api/src/models/post.ts +++ b/apps/miiverse-api/src/models/post.ts @@ -12,10 +12,13 @@ import type { PostData, PostPainting, PostScreenshot, PostTopicTag } from '@/typ * If you add default: or required:, please also update IPost and IPostInput! */ const PostSchema = new Schema({ - id: { type: String, required: true }, + id: { type: String }, // generated in save hook title_id: { type: String }, screen_name: { type: String, required: true }, - body: { type: String, required: true }, + body: { + type: String, + default: '' + }, app_data: { type: String }, painting: { type: String }, diff --git a/apps/miiverse-api/src/types/mongoose/post.ts b/apps/miiverse-api/src/types/mongoose/post.ts index a9354c7d..ae4614c5 100644 --- a/apps/miiverse-api/src/types/mongoose/post.ts +++ b/apps/miiverse-api/src/types/mongoose/post.ts @@ -57,6 +57,8 @@ export interface IPost { // on input but not output // We really need an ORM type PostDefaultedFields = + 'id' | // generated in save hook + 'body' | 'is_autopost' | 'is_community_private_autopost' | 'is_spoiler' |