mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-04 04:54:19 +01:00
neatness
This commit is contained in:
@@ -44,10 +44,9 @@ export class S3Uploader implements NUploader {
|
||||
const { pathStyle, bucket } = Conf.s3;
|
||||
|
||||
const path = (pathStyle && bucket) ? join(bucket, filename) : filename;
|
||||
const url = new URL(path, Conf.mediaDomain).toString();
|
||||
|
||||
return Object.entries({
|
||||
url: url,
|
||||
url: new URL(path, Conf.mediaDomain).toString(),
|
||||
m: file.type,
|
||||
size: file.size.toString(),
|
||||
...await getOptionalNip94Metadata(file),
|
||||
|
||||
Reference in New Issue
Block a user