test(backend): goodbye, Lenna (#14111)

This commit is contained in:
Kisaragi
2024-07-02 14:29:44 +09:00
committed by GitHub
parent 427648c4b8
commit eafae79869
13 changed files with 18 additions and 18 deletions

View File

@@ -297,7 +297,7 @@ export const uploadFile = async (user?: UserToken, { path, name, blob }: UploadO
body: misskey.entities.DriveFile | null
}> => {
const absPath = path == null
? new URL('resources/Lenna.jpg', import.meta.url)
? new URL('resources/192.jpg', import.meta.url)
: isAbsolute(path.toString())
? new URL(path)
: new URL(path, new URL('resources/', import.meta.url));