refactor(database): 🔥 Simplify media management code

This commit is contained in:
Jesse Wierzbinski 2025-01-28 18:06:33 +01:00
parent cf1104d762
commit bc961b70bb
No known key found for this signature in database
7 changed files with 173 additions and 109 deletions

View file

@ -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,