From f6428ca16b9b5b324fa5a3a1edf764d1bc942d82 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 1 May 2023 21:50:14 -0700 Subject: [PATCH 1/2] max import posts twice a month --- packages/backend/src/server/api/endpoints/i/import-posts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/i/import-posts.ts b/packages/backend/src/server/api/endpoints/i/import-posts.ts index 6fdf562fd..5f4b99f02 100644 --- a/packages/backend/src/server/api/endpoints/i/import-posts.ts +++ b/packages/backend/src/server/api/endpoints/i/import-posts.ts @@ -8,8 +8,8 @@ export const meta = { secure: true, requireCredential: true, limit: { - duration: DAY, - max: 1, + duration: DAY * 30, + max: 2, }, errors: { noSuchFile: { From eec5c86cb30824bb7393304150a1d67a32a3e9fa Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 1 May 2023 23:08:35 -0700 Subject: [PATCH 2/2] disable post imports for now --- packages/backend/src/server/api/endpoints.ts | 2 +- packages/client/src/pages/settings/import-export.vue | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/backend/src/server/api/endpoints.ts b/packages/backend/src/server/api/endpoints.ts index 3f82eb7a7..c17b6844d 100644 --- a/packages/backend/src/server/api/endpoints.ts +++ b/packages/backend/src/server/api/endpoints.ts @@ -533,7 +533,7 @@ const eps = [ ["i/export-following", ep___i_exportFollowing], ["i/export-mute", ep___i_exportMute], ["i/export-notes", ep___i_exportNotes], - ["i/import-posts", ep___i_importPosts], + // ["i/import-posts", ep___i_importPosts], ["i/export-user-lists", ep___i_exportUserLists], ["i/favorites", ep___i_favorites], ["i/gallery/likes", ep___i_gallery_likes], diff --git a/packages/client/src/pages/settings/import-export.vue b/packages/client/src/pages/settings/import-export.vue index fd0f79510..7186ec895 100644 --- a/packages/client/src/pages/settings/import-export.vue +++ b/packages/client/src/pages/settings/import-export.vue @@ -16,23 +16,20 @@ {{ i18n.ts.export }} - + - + {{ i18n.ts.import }} - + -->