mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(database): 🔥 Simplify media management code
This commit is contained in:
parent
cf1104d762
commit
bc961b70bb
7 changed files with 173 additions and 109 deletions
|
|
@ -250,7 +250,9 @@ export default (plugin: PluginType): void => {
|
|||
avatar: picture
|
||||
? {
|
||||
url: picture,
|
||||
content_type: await mimeLookup(picture),
|
||||
content_type: await mimeLookup(
|
||||
new URL(picture),
|
||||
),
|
||||
}
|
||||
: undefined,
|
||||
password: undefined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue