test(backend): goodbye, Lenna (#14111)
This commit is contained in:
parent
427648c4b8
commit
eafae79869
13 changed files with 18 additions and 18 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue