fixed bad library ref

This commit is contained in:
dekzter 2025-04-25 10:46:49 -04:00
parent 133e2c6787
commit d7b7a32396

View file

@ -629,7 +629,7 @@ class LogoViewSet(viewsets.ModelViewSet):
if logo_url.startswith("/data"): # Local file
if not os.path.exists(logo_url):
raise Http404("Image not found")
mimetype = mimetype.guess_type(logo_url)
mimetype = mimetypes.guess_type(logo_url)
return FileResponse(open(logo_url, "rb"), content_type=mimetype)
else: # Remote image