From 9b2cc17d3e1117483e5795814f1ba3852076fedc Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 17 Jul 2023 17:38:27 -0700 Subject: [PATCH] chore: :art: format --- packages/backend/src/misc/process-masto-notes.ts | 2 +- packages/backend/src/services/fetch-rel-me.ts | 5 ++++- packages/client/src/components/MkMedia.vue | 12 +++++++----- packages/client/src/pages/settings/profile.vue | 4 ++-- packages/client/src/pages/user/home.vue | 2 +- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/packages/backend/src/misc/process-masto-notes.ts b/packages/backend/src/misc/process-masto-notes.ts index b8c1c426d..0333a17c1 100644 --- a/packages/backend/src/misc/process-masto-notes.ts +++ b/packages/backend/src/misc/process-masto-notes.ts @@ -46,7 +46,7 @@ function processMastoFile(fn: string, path: string, dir: string, uid: string) { for (const note of outbox.orderedItems) { for (const attachment of note.object.attachment) { const url = attachment.url.replaceAll("..", ""); - if (url.indexOf('\0') !== -1) { + if (url.indexOf("\0") !== -1) { logger.error(`Found Poison Null Bytes Attack: ${url}`); reject(); return; diff --git a/packages/backend/src/services/fetch-rel-me.ts b/packages/backend/src/services/fetch-rel-me.ts index 7b450c229..f7dbf72c1 100644 --- a/packages/backend/src/services/fetch-rel-me.ts +++ b/packages/backend/src/services/fetch-rel-me.ts @@ -16,7 +16,10 @@ async function getRelMeLinks(url: string): Promise { } } -export async function verifyLink(link: string, username: string): Promise { +export async function verifyLink( + link: string, + username: string, +): Promise { let verified = false; if (link.startsWith("http")) { const relMeLinks = await getRelMeLinks(link); diff --git a/packages/client/src/components/MkMedia.vue b/packages/client/src/components/MkMedia.vue index a33a526b6..dd329f0bb 100644 --- a/packages/client/src/components/MkMedia.vue +++ b/packages/client/src/components/MkMedia.vue @@ -61,11 +61,13 @@