mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
neatness
This commit is contained in:
parent
713260e110
commit
57725fa9ac
1 changed files with 1 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue