From b54dfff32f9b94a3cc643c82ac4ead43847f76af 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 b8c1c426d5..0333a17c17 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 7b450c229c..f7dbf72c1e 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 a33a526b63..dd329f0bb6 100644 --- a/packages/client/src/components/MkMedia.vue +++ b/packages/client/src/components/MkMedia.vue @@ -61,11 +61,13 @@