From b72760fd256b7e41424a85677f39bddfe25f410c Mon Sep 17 00:00:00 2001 From: caipira113 Date: Mon, 21 Oct 2024 21:48:34 +0900 Subject: [PATCH 1/3] feat(backend): `notes/update` limit from 10 to 300 per hour --- packages/backend/src/server/api/endpoints/notes/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/notes/update.ts b/packages/backend/src/server/api/endpoints/notes/update.ts index 48bfe2438..ef84220ef 100644 --- a/packages/backend/src/server/api/endpoints/notes/update.ts +++ b/packages/backend/src/server/api/endpoints/notes/update.ts @@ -24,7 +24,7 @@ export const meta = { limit: { duration: ms('1hour'), - max: 10, + max: 300, minInterval: ms('1sec'), }, From eb7e96e8c9cffc02992050de498d13fa04ee000b Mon Sep 17 00:00:00 2001 From: caipira113 Date: Mon, 21 Oct 2024 21:50:24 +0900 Subject: [PATCH 2/3] feat(frontend): display update time in note detail --- packages/frontend/src/components/MkNoteDetailed.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 6d5368565..8c0ad67f2 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -116,6 +116,11 @@ SPDX-License-Identifier: AGPL-3.0-only +
+ + {{ i18n.ts.updatedAt }}: + +