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 @@