From d2106d490409dc2cea1d07c9beb606d5d64cfa99 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Tue, 16 May 2023 20:31:13 -0700 Subject: [PATCH] fix: dont show cheat sheet when not needed --- .../queue/processors/db/import-masto-post.ts | 4 +- packages/client/src/components/MkPostForm.vue | 3 + .../src/components/MkTutorialDialog.vue | 2 +- packages/client/src/components/form/input.vue | 38 +++--- packages/client/src/components/form/radio.vue | 8 +- packages/client/src/components/form/range.vue | 40 +++--- .../client/src/components/form/select.vue | 34 ++--- .../client/src/components/form/switch.vue | 4 +- .../client/src/components/form/textarea.vue | 19 ++- .../client/src/components/global/MkSpacer.vue | 2 +- packages/client/src/os.ts | 122 +++++++++++++++--- .../client/src/pages/settings/general.vue | 20 +-- .../client/src/pages/settings/migration.vue | 4 +- packages/client/src/ui/universal.vue | 5 +- packages/client/src/widgets/post-form.vue | 7 +- 15 files changed, 209 insertions(+), 103 deletions(-) diff --git a/packages/backend/src/queue/processors/db/import-masto-post.ts b/packages/backend/src/queue/processors/db/import-masto-post.ts index c6bdee49b..564071d3b 100644 --- a/packages/backend/src/queue/processors/db/import-masto-post.ts +++ b/packages/backend/src/queue/processors/db/import-masto-post.ts @@ -24,12 +24,12 @@ export async function importMastoPost( reply = await resolveNote(post.object.inReplyTo); } if (post.directMessage) { - done(); + done(); return; } if (job.data.signatureCheck) { if (!post.signature) { - done(); + done(); return; } } diff --git a/packages/client/src/components/MkPostForm.vue b/packages/client/src/components/MkPostForm.vue index 3be9140fb..18431cb14 100644 --- a/packages/client/src/components/MkPostForm.vue +++ b/packages/client/src/components/MkPostForm.vue @@ -204,6 +204,7 @@