Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/juxtaposition-ui/src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion apps/juxtaposition-ui/src/translations/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -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!",
Expand Down
2 changes: 1 addition & 1 deletion apps/juxtaposition-ui/src/translations/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
7 changes: 5 additions & 2 deletions apps/miiverse-api/src/models/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<IPost, PostModel, IPostMethods>({
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 },
Expand Down
7 changes: 6 additions & 1 deletion apps/miiverse-api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down
2 changes: 2 additions & 0 deletions apps/miiverse-api/src/types/mongoose/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' |
Expand Down